diff options
| author | Junio C Hamano <junkio@cox.net> | 2006-05-07 16:06:45 -0700 |
|---|---|---|
| committer | Junio C Hamano <junkio@cox.net> | 2006-05-07 16:06:45 -0700 |
| commit | 7f498065e9bf85f6f3e954ec57dedf56fec29e01 (patch) | |
| tree | d5bd668d03aaa23fcfc280c861a77b29a598d758 /git-clone.sh | |
| parent | 2c4c17fbb9c26cdc411126a2c5365e3fc3a0242a (diff) | |
| parent | 0438402271cccc1711c603b0a7ba3134f1ce30f1 (diff) | |
| download | git-7f498065e9bf85f6f3e954ec57dedf56fec29e01.tar.xz | |
Merge branch 'mw/alternates' into next
* mw/alternates:
clone: don't clone the info/alternates file
test case for transitive info/alternates
Transitively read alternatives
repack: honor -d even when no new pack was created
clone: keep --reference even with -l -s
repo-config: document what value_regexp does a bit more clearly.
Release config lock if the regex is invalid
core-tutorial.txt: escape asterisk
Sparse fix for builtin-diff
Fix users of prefix_path() to free() only when necessary
Diffstat (limited to 'git-clone.sh')
| -rwxr-xr-x | git-clone.sh | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/git-clone.sh b/git-clone.sh index 0805168057..227245c865 100755 --- a/git-clone.sh +++ b/git-clone.sh @@ -261,11 +261,7 @@ yes,yes) ;; yes) mkdir -p "$GIT_DIR/objects/info" - { - test -f "$repo/objects/info/alternates" && - cat "$repo/objects/info/alternates"; - echo "$repo/objects" - } >"$GIT_DIR/objects/info/alternates" + echo "$repo/objects" >> "$GIT_DIR/objects/info/alternates" ;; esac git-ls-remote "$repo" >"$GIT_DIR/CLONE_HEAD" |
