test case for transitive info/alternates
[gitweb.git] / git-clone.sh
index 0805168057c871549d87ff4e9e30d654abbed0a4..b78524767c0a3fd8ce99412e1d0b92a9a9ba26fb 100755 (executable)
@@ -265,7 +265,7 @@ yes,yes)
                test -f "$repo/objects/info/alternates" &&
                cat "$repo/objects/info/alternates";
                echo "$repo/objects"
-           } >"$GIT_DIR/objects/info/alternates"
+           } >>"$GIT_DIR/objects/info/alternates"
            ;;
        esac
        git-ls-remote "$repo" >"$GIT_DIR/CLONE_HEAD"