Code

Don't use the 'export NAME=value' in the test scripts.
[git.git] / t / t5500-fetch-pack.sh
index 788b4a5aae17d33ad688446bb60973952c3ca918..1700d0794cacc0854bd3133dfddd0677b3c899ef 100755 (executable)
@@ -31,7 +31,7 @@ add () {
        sec=$(($sec+1))
        commit=$(echo "$text" | GIT_AUTHOR_DATE=$sec \
                git commit-tree $tree $parents 2>>log2.txt)
-       export $name=$commit
+       eval "$name=$commit; export $name"
        echo $commit > .git/refs/heads/$branch
        eval ${branch}TIP=$commit
 }