Teach git list-objects logic not to follow gitlinks
[gitweb.git] / git-commit.sh
index 3656d607d5b91d8d125b5a72b6a2a00aee512618..9e0959aec06c4d4d7b4f14660c26bc9dd941f111 100755 (executable)
@@ -370,8 +370,8 @@ t,)
                # the same way.
                if test -z "$initial_commit"
                then
-                       cp "$THIS_INDEX" "$TMP_INDEX"
-                       GIT_INDEX_FILE="$TMP_INDEX" git-read-tree -m HEAD
+                       GIT_INDEX_FILE="$THIS_INDEX" \
+                       git-read-tree --index-output="$TMP_INDEX" -i -m HEAD
                else
                        rm -f "$TMP_INDEX"
                fi || exit