setlocalversion: fix version for untaged nontip mercurial revs
diff mbox

Message ID fix-hg-id-resend1@mdm.bga.com
State New, archived
Headers show

Commit Message

Milton Miller July 22, 2010, 3:19 p.m. UTC
None

Patch
diff mbox

diff --git a/scripts/setlocalversion b/scripts/setlocalversion
index a7b9f76..872312f 100755
--- 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