File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -121,12 +121,17 @@ module_clone()
121
121
path=$1
122
122
url=$2
123
123
reference=" $3 "
124
+ quiet=
125
+ if test -n " $GIT_QUIET "
126
+ then
127
+ quiet=-q
128
+ fi
124
129
125
130
if test -n " $reference "
126
131
then
127
- git-clone " $reference " -n " $url " " $path "
132
+ git-clone $quiet " $reference " -n " $url " " $path "
128
133
else
129
- git-clone -n " $url " " $path "
134
+ git-clone $quiet -n " $url " " $path "
130
135
fi ||
131
136
die " Clone of '$url ' into submodule path '$path ' failed"
132
137
}
Original file line number Diff line number Diff line change @@ -77,7 +77,8 @@ test_expect_success 'submodule add' '
77
77
78
78
(
79
79
cd addtest &&
80
- git submodule add "$submodurl" submod &&
80
+ git submodule add -q "$submodurl" submod >actual &&
81
+ test ! -s actual &&
81
82
git submodule init
82
83
) &&
83
84
@@ -275,7 +276,8 @@ test_expect_success 'update should work when path is an empty dir' '
275
276
echo "$rev1" >expect &&
276
277
277
278
mkdir init &&
278
- git submodule update &&
279
+ git submodule update -q >update.out &&
280
+ test ! -s update.out &&
279
281
280
282
inspect init &&
281
283
test_cmp expect head-sha1
You can’t perform that action at this time.
0 commit comments