Skip to content

Commit

Permalink
clone: don't clone the info/alternates file
Browse files Browse the repository at this point in the history
Now that the cloned alternates file is parsed, too we don't need to
copy it into our new repository, we just reference it.

Signed-off-by: Martin Waitz <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
tali authored and Junio C Hamano committed May 7, 2006
1 parent dd05ea1 commit 0438402
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions git-clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0438402

Please sign in to comment.