clone: keep --reference even with -l -s
Both -l -s and --reference update objects/info/alternates and used to write over each other. Signed-off-by: Martin Waitz <tali@admingilde.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
committed by
Junio C Hamano
parent
6fe31e2e4c
commit
cf9dc65368
@ -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"
|
||||
|
||||
Reference in New Issue
Block a user