X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-fetch.sh;h=6d3a3468b3f22d8eeb1a2ba568a6c8ed48606dbd;hb=2abd31b07864049f0352d86c0c90413123f40945;hp=0e05cf1195737d2c7afc4b9447d7b4105908bf77;hpb=fdcb769916c93b53517ef1b4cae447a3333c9b86;p=git.git diff --git a/git-fetch.sh b/git-fetch.sh index 0e05cf119..6d3a3468b 100755 --- a/git-fetch.sh +++ b/git-fetch.sh @@ -61,7 +61,7 @@ do quiet=--quiet ;; -v|--verbose) - verbose=Yes + verbose="$verbose"Yes ;; -k|--k|--ke|--kee|--keep) keep='-k -k' @@ -201,8 +201,14 @@ fetch_all_at_once () { echo "$ls_remote_result" | \ git-fetch--tool pick-rref "$rref" "-" else + flags= + case $verbose in + YesYes*) + flags="-v" + ;; + esac git-fetch-pack --thin $exec $keep $shallow_depth \ - $quiet $no_progress "$remote" $rref || + $quiet $no_progress $flags "$remote" $rref || echo failed "$remote" fi fi