projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
setlocalversion: fix version for untaged nontip mercurial revs
[cascardo/linux.git]
/
scripts
/
setlocalversion
diff --git
a/scripts/setlocalversion
b/scripts/setlocalversion
index
64a9cb5
..
e90a91c
100755
(executable)
--- a/
scripts/setlocalversion
+++ b/
scripts/setlocalversion
@@
-86,7
+86,7
@@
scm_version()
# Check for mercurial and a mercurial repo.
if hgid=`hg id 2>/dev/null`; then
- tag=`printf '%s' "$hgid" | cut -d' ' -f2`
+ tag=`printf '%s' "$hgid" | cut -
s -
d' ' -f2`
# Do we have an untagged version?
if [ -z "$tag" -o "$tag" = tip ]; then