File tree Expand file tree Collapse file tree 7 files changed +14
-8
lines changed
Expand file tree Collapse file tree 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%/*/*}"
1111if [ -z " $NUMBER_OF_PROCESSORS " ]; then
1212 NUMBER_OF_PROCESSORS=$( getconf _NPROCESSORS_ONLN || echo 2)
1313fi
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 3737 echo " Promoting equipment/$NAME /$BRANCH -> $DESIRED "
3838 " $CPPSM /commands/remove" " equipment/$NAME /$BRANCH "
3939 fi
40- git submodule add -b " $BRANCH " " $URL " " $DESIRED "
40+ git submodule " ${GIT_QUIET[@]} " add --branch " $BRANCH " " $URL " " $DESIRED "
4141 EXISTING=" $DESIRED "
4242fi
4343
Original file line number Diff line number Diff line change @@ -18,6 +18,6 @@ NAME="${NAME##*/}"
1818
1919N_PARALLEL_UPDATE=" ${N_PARALLEL_UPDATE:- $NUMBER_OF_PROCESSORS } "
2020
21- git clone -b " $2 " " $1 "
21+ git clone " ${GIT_QUIET[@]} " --branch " $2 " " $1 "
2222cd " $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 1717fi
1818
1919if [ ! -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
2121fi
2222
2323ln -fs .cppsm/.clang-format .clang-format
Original file line number Diff line number Diff line change 1414 exit 1
1515fi
1616
17- git pull -r
17+ git pull " ${GIT_QUIET[@]} " --rebase
1818
1919update-by-key () {
2020 local KEY=" $1 "
2121 local DIR
2222 DIR=" $( git config --file .gitmodules --get " $KEY " ) "
23- git submodule update --init -- " $DIR "
23+ git submodule " ${GIT_QUIET[@]} " update --init -- " $DIR "
2424}
2525
2626for KEY in $( git config \
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ upgrade-by-key () {
1818 local KEY=" $1 "
1919 local DIR
2020 DIR=" $( git config --file .gitmodules --get " $KEY " ) "
21- git submodule update --remote -- " $DIR "
21+ git submodule " ${GIT_QUIET[@]} " update --remote -- " $DIR "
2222 git add " $DIR "
2323}
2424
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ git commit -m Initial
1717
1818../travis-ci
1919
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
2121cppsm add equipment https://github.com/per-framework/dumpster.cpp.git v1
2222cppsm add requires https://github.com/per-framework/dumpster.cpp.git v1
2323cppsm add equipment https://github.com/per-framework/dumpster.cpp.git v1
You can’t perform that action at this time.
0 commit comments