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:
Tom Prince
2006-01-10 18:50:19 -07:00
committed by Junio C Hamano
parent cfa6d70bd4
commit 0f76f52621
2 changed files with 7 additions and 1 deletions

View File

@ -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