Add --keep option to keep downloaded packs to git-fetch.
Signed-off-by: Tom Prince <tom.prince@ualberta.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
committed by
Junio C Hamano
parent
cfa6d70bd4
commit
0f76f52621
@ -40,6 +40,9 @@ do
|
||||
-v|--verbose)
|
||||
verbose=Yes
|
||||
;;
|
||||
-k|--k|--ke|--kee|--keep)
|
||||
keep=--keep
|
||||
;;
|
||||
-*)
|
||||
usage
|
||||
;;
|
||||
@ -309,7 +312,7 @@ fetch_main () {
|
||||
( : subshell because we muck with IFS
|
||||
IFS=" $LF"
|
||||
(
|
||||
git-fetch-pack "$remote" $rref || echo failed "$remote"
|
||||
git-fetch-pack $keep "$remote" $rref || echo failed "$remote"
|
||||
) |
|
||||
while read sha1 remote_name
|
||||
do
|
||||
|
||||
Reference in New Issue
Block a user