@matheusbsbs / matheus-bagliano / commits / 482faa8daf
Fork 0

git-fetch: fix --keep vs --thin

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>

Junio C Hamano committed Jul 17, 2006 at 13:01 UTC 482faa8dafdf5dcf207b866b9c757271d9a45301
1 file changed +2 -1
git-fetch.sh
+2 -1
@@ -20,6 +20,7 @@ verbose=
20 update_head_ok=
21 exec=
22 upload_pack=
23 +keep=--thin
24 while case "$#" in 0) break ;; esac
25 do
26 case "$1" in
@@ -347,7 +348,7 @@ fetch_main () {
348 ( : subshell because we muck with IFS
349 IFS=" $LF"
350 (
350 - git-fetch-pack $exec $keep --thin "$remote" $rref || echo failed "$remote"
351 + git-fetch-pack $exec $keep "$remote" $rref || echo failed "$remote"
352 ) |
353 while read sha1 remote_name
354 do