File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -207,17 +207,22 @@ cloneFetch() {
207
207
if [[ ! -d " .git" ]]; then
208
208
printf " cloning %s...\n" " $repo "
209
209
(
210
- git clone " https://github.com/ModelingValueGroup/$repo .git" TMP_GIT 2>&1 > /dev/null
211
- cp -R TMP_GIT/. .
212
- rm -rf TMP_GIT
213
- if [[ " $( listRemoteBranches | tr ' ' ' \n' | egrep ' ^d$' ) " ]]; then
214
- git checkout develop
210
+ GIT_SSH_COMMAND=' ssh -oBatchMode=yes' git clone git@github.com/ModelingValueGroup/$repo .git TMP_GIT 2>&1 > /dev/null
211
+ if (( $? == 0 )) then
212
+ cp -R TMP_GIT/. .
213
+ rm -rf TMP_GIT
214
+ if [[ " $( listRemoteBranches | tr ' ' ' \n' | egrep ' ^d$' ) " ]]; then
215
+ git checkout develop
216
+ fi
215
217
fi
216
218
) 2>&1 | sed ' s/^/ # /' # 2>&1 >/dev/null
217
219
fi
218
- git fetch --progress --prune --all > /dev/null 2>&1
219
-
220
- echo " # done: $repo " 1>&2
220
+ if [[ ! -d " .git" ]]; then
221
+ echo " # not available: $repo " 1>&2
222
+ else
223
+ git fetch --progress --prune --all > /dev/null 2>&1
224
+ echo " # done: $repo " 1>&2
225
+ fi
221
226
)&
222
227
}
223
228
pullAll () {
You can’t perform that action at this time.
0 commit comments