Skip to content

Commit

Permalink
git-fetch: fix --keep vs --thin
Browse files Browse the repository at this point in the history
When --keep is specified there is no reason to pass --thin to git-fetch-pack,
which are mutually exclusive.  This does not hurt because fetch-pack disables
thin transfer when both are given internally, but still is confusing.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Jul 17, 2006
1 parent b9718d4 commit 482faa8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion git-fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ verbose=
update_head_ok=
exec=
upload_pack=
keep=--thin
while case "$#" in 0) break ;; esac
do
case "$1" in
Expand Down Expand Up @@ -347,7 +348,7 @@ fetch_main () {
( : subshell because we muck with IFS
IFS=" $LF"
(
git-fetch-pack $exec $keep --thin "$remote" $rref || echo failed "$remote"
git-fetch-pack $exec $keep "$remote" $rref || echo failed "$remote"
) |
while read sha1 remote_name
do
Expand Down

0 comments on commit 482faa8

Please sign in to comment.