File tree 7 files changed +14
-8
lines changed
7 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -11,3 +11,9 @@ export CPPSM="${BASH_SOURCE%/*/*}"
11
11
if [ -z " $NUMBER_OF_PROCESSORS " ]; then
12
12
NUMBER_OF_PROCESSORS=$( getconf _NPROCESSORS_ONLN || echo 2)
13
13
fi
14
+
15
+ if [ " $GIT_QUIET " = 0 ]; then
16
+ GIT_QUIET=()
17
+ else
18
+ GIT_QUIET=(--quiet)
19
+ fi
Original file line number Diff line number Diff line change 37
37
echo " Promoting equipment/$NAME /$BRANCH -> $DESIRED "
38
38
" $CPPSM /commands/remove" " equipment/$NAME /$BRANCH "
39
39
fi
40
- git submodule add -b " $BRANCH " " $URL " " $DESIRED "
40
+ git submodule " ${GIT_QUIET[@]} " add --branch " $BRANCH " " $URL " " $DESIRED "
41
41
EXISTING=" $DESIRED "
42
42
fi
43
43
Original file line number Diff line number Diff line change @@ -18,6 +18,6 @@ NAME="${NAME##*/}"
18
18
19
19
N_PARALLEL_UPDATE=" ${N_PARALLEL_UPDATE:- $NUMBER_OF_PROCESSORS } "
20
20
21
- git clone -b " $2 " " $1 "
21
+ git clone " ${GIT_QUIET[@]} " --branch " $2 " " $1 "
22
22
cd " $NAME "
23
- git submodule update --init --jobs " $N_PARALLEL_UPDATE "
23
+ git submodule " ${GIT_QUIET[@]} " update --init --jobs " $N_PARALLEL_UPDATE "
Original file line number Diff line number Diff line change 17
17
fi
18
18
19
19
if [ ! -d .cppsm ]; then
20
- git submodule add -b master https://github.com/cppsm/cppsm-boilerplate.git .cppsm
20
+ git submodule " ${GIT_QUIET[@]} " add --branch master https://github.com/cppsm/cppsm-boilerplate.git .cppsm
21
21
fi
22
22
23
23
ln -fs .cppsm/.clang-format .clang-format
Original file line number Diff line number Diff line change 14
14
exit 1
15
15
fi
16
16
17
- git pull -r
17
+ git pull " ${GIT_QUIET[@]} " --rebase
18
18
19
19
update-by-key () {
20
20
local KEY=" $1 "
21
21
local DIR
22
22
DIR=" $( git config --file .gitmodules --get " $KEY " ) "
23
- git submodule update --init -- " $DIR "
23
+ git submodule " ${GIT_QUIET[@]} " update --init -- " $DIR "
24
24
}
25
25
26
26
for KEY in $( git config \
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ upgrade-by-key () {
18
18
local KEY=" $1 "
19
19
local DIR
20
20
DIR=" $( git config --file .gitmodules --get " $KEY " ) "
21
- git submodule update --remote -- " $DIR "
21
+ git submodule " ${GIT_QUIET[@]} " update --remote -- " $DIR "
22
22
git add " $DIR "
23
23
}
24
24
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ git commit -m Initial
17
17
18
18
../travis-ci
19
19
20
- git submodule add -b v1 https://github.com/per-framework/dumpster.cpp.git equipment/dumpster.cpp/v1
20
+ git submodule --quiet add -b v1 https://github.com/per-framework/dumpster.cpp.git equipment/dumpster.cpp/v1
21
21
cppsm add equipment https://github.com/per-framework/dumpster.cpp.git v1
22
22
cppsm add requires https://github.com/per-framework/dumpster.cpp.git v1
23
23
cppsm add equipment https://github.com/per-framework/dumpster.cpp.git v1
You can’t perform that action at this time.
0 commit comments