diff options
-rwxr-xr-x | git-clone-script | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/git-clone-script b/git-clone-script index 909ccc530..99c245963 100755 --- a/git-clone-script +++ b/git-clone-script @@ -81,7 +81,11 @@ yes,yes) ;; yes) mkdir -p "$D/.git/objects/info" - echo "$repo/objects" >"$D/.git/objects/info/alternates" + { + test -f "$repo/objects/info/alternates" && + cat "$repo/objects/info/alternates"; + echo "$repo/objects" + } >"$D/.git/objects/info/alternates" ;; esac |