log_info "finding all git repos in $SERVER:$TARGET"
- readarray -d '' repos < <("$SSH" "$SERVER" -- "$LS" "$TARGET" --zero)
+ readarray -d '' repos < <("$SSH" -o BatchMode=yes "$SERVER" -- "$LS" "$TARGET" --zero 2>/dev/null)
for i in "${repos[@]}"; do
set +e
local target="$TARGET/${i}"
- if [[ "true" == "$("$SSH" "$SERVER" -- "$GIT" -C "$target" rev-parse --is-bare-repository 2>&1)" ]]; then
+ if [[ "true" == "$("$SSH" -o BatchMode=yes "$SERVER" -- "$GIT" -C "$target" rev-parse --is-bare-repository 2>&1)" ]]; then
if [[ -d "$i" ]]; then
TO_FETCH+=("$SERVER:$target")
else