Unverified Commit 08d5c936 authored by Syphdias's avatar Syphdias Committed by GitHub

fix(git-auto-fetch): avoid password prompt with `GIT_TERMINAL_PROMPT=0` (#11234)

parent 52e848ce
......@@ -28,6 +28,7 @@ function git-fetch-all {
# Fetch all remotes (avoid ssh passphrase prompt)
date -R &>! "$gitdir/FETCH_LOG"
GIT_SSH_COMMAND="command ssh -o BatchMode=yes" \
GIT_TERMINAL_PROMPT=0 \
command git fetch --all 2>/dev/null &>> "$gitdir/FETCH_LOG"
) &|
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment