summaryrefslogtreecommitdiffstats
path: root/util/getrevision.sh
diff options
context:
space:
mode:
Diffstat (limited to 'util/getrevision.sh')
-rwxr-xr-xutil/getrevision.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/util/getrevision.sh b/util/getrevision.sh
index e1580e5eb..0f9754625 100755
--- a/util/getrevision.sh
+++ b/util/getrevision.sh
@@ -131,13 +131,14 @@ timestamp() {
# Retrieve local revision info.
local_revision() {
+ local r
if git_is_file_tracked "$1" ; then
- local r=$(git describe $(git_last_commit "$1"))
+ r=$(git describe $(git_last_commit "$1"))
if git_has_local_changes "$1" ; then
r="$r-dirty"
fi
else
- return ${EXIT_FAILURE}
+ r="unknown"
fi
echo "${r}"