X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=git-clone-script;h=f988b8c9c79fbb9ec9c3cad556cb4c9d51984475;hb=2ab141a26f93c4d97e243a6be8a38a7dd4eb35a3;hp=909ccc530136899eee130f1a29969281f3b878c9;hpb=da27f4f3f4c23d0276a372726ed050ed13e45168;p=git.git diff --git a/git-clone-script b/git-clone-script index 909ccc53..f988b8c9 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 @@ -123,6 +127,8 @@ yes,yes) esac # Update origin. -mkdir -p "$D/.git/branches/" && -rm -f "$D/.git/branches/origin" && -echo "$repo" >"$D/.git/branches/origin" +mkdir -p "$D/.git/remotes/" && +rm -f "$D/.git/remotes/origin" && +echo >"$D/.git/remotes/origin" \ +"URL: $repo +Pull: master:origin"