26
26
shallow_depth=
27
27
no_progress=
28
28
test -t 1 || no_progress=--no-progress
29
+ quiet=
29
30
while case " $# " in 0) break ;; esac
30
31
do
31
32
case " $1 " in
56
57
--update-head-o|--update-head-ok)
57
58
update_head_ok=t
58
59
;;
60
+ -q|--q|--qu|--qui|--quie|--quiet)
61
+ quiet=--quiet
62
+ ;;
59
63
-v|--verbose)
60
64
verbose=Yes
61
65
;;
@@ -173,8 +177,8 @@ fetch_all_at_once () {
173
177
git-bundle unbundle " $remote " $rref ||
174
178
echo failed " $remote "
175
179
else
176
- git-fetch-pack --thin $exec $keep $shallow_depth $no_progress \
177
- " $remote " $rref ||
180
+ git-fetch-pack --thin $exec $keep $shallow_depth \
181
+ $quiet $no_progress " $remote " $rref ||
178
182
echo failed " $remote "
179
183
fi
180
184
) |
@@ -248,7 +252,8 @@ fetch_per_ref () {
248
252
expr " z$head " : " z$_x40 \$ " > /dev/null ||
249
253
die " No such ref $remote_name at $remote "
250
254
echo >&2 " Fetching $remote_name from $remote using $proto "
251
- git-http-fetch -v -a " $head " " $remote " || exit
255
+ case " $quiet " in ' ' ) v=-v ;; * ) v= ;; esac
256
+ git-http-fetch $v -a " $head " " $remote " || exit
252
257
;;
253
258
rsync://* )
254
259
test -n " $shallow_depth " &&
@@ -257,8 +262,9 @@ fetch_per_ref () {
257
262
rsync -L -q " $remote /$remote_name " " $TMP_HEAD " || exit 1
258
263
head=$( git-rev-parse --verify TMP_HEAD)
259
264
rm -f " $TMP_HEAD "
265
+ case " $quiet " in ' ' ) v=-v ;; * ) v= ;; esac
260
266
test " $rsync_slurped_objects " || {
261
- rsync -av --ignore-existing --exclude info \
267
+ rsync -a $v --ignore-existing --exclude info \
262
268
" $remote /objects/" " $GIT_OBJECT_DIRECTORY /" || exit
263
269
264
270
# Look at objects/info/alternates for rsync -- http will
0 commit comments