]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Fix t4201: accidental arithmetic expansion
authorAlex Riesen <raa.lkml@gmail.com>
Fri, 13 Apr 2007 20:13:10 +0000 (22:13 +0200)
committerJunio C Hamano <junkio@cox.net>
Mon, 16 Apr 2007 23:52:55 +0000 (16:52 -0700)
instead of embedded subshell. It actually breaks here (dash as /bin/sh):

t4201-shortlog.sh: 27: Syntax error: Missing '))'
FATAL: Unexpected exit with code 2

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
t/t4201-shortlog.sh

index 321429c8fa94b238c77d6a0bb41857b528876adf..c27e39cb6f85a68af29fae6849f2811eaee4c44a 100644 (file)
@@ -11,7 +11,7 @@ test_description='git-shortlog
 echo 1 > a1
 git add a1
 tree=$(git write-tree)
-commit=$((echo "Test"; echo) | git commit-tree $tree)
+commit=$( (echo "Test"; echo) | git commit-tree $tree )
 git update-ref HEAD $commit
 
 echo 2 > a1