Don't leak stderr from 'git describe' in cmpVERSION
authorHugo van der Sanden <hv@crypt.org>
Fri, 2 Nov 2012 09:42:52 +0000 (09:42 +0000)
committerHugo van der Sanden <hv@crypt.org>
Fri, 2 Nov 2012 10:41:43 +0000 (10:41 +0000)
Porting/cmpVERSION.pl

index 36128bb..525ffe1 100755 (executable)
@@ -39,7 +39,7 @@ my $null = devnull();
 unless (defined $tag_to_compare) {
     # Thanks to David Golden for this suggestion.
 
-    $tag_to_compare = `git describe --abbrev=0`;
+    $tag_to_compare = `git describe --abbrev=0 2>$null`;
     chomp $tag_to_compare;
 }