Skip to contentSkip to conversation

Fix t4201: accidental arithmetic expansion

PATCH Alex Riesen 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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

---
 t/t4201-shortlog.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
t/t4201-shortlog.sh +1 -1
index 321429c..c27e39c 100644
@@ -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
Signature · 1 line
1.5.1.130.g0ea6d