diff options
author | Syphdias <syphdias+git@gmail.com> | 2022-10-14 19:12:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-14 19:12:04 +0200 |
commit | 08d5c936c670bd7e37902f64a065ba9f74452cb9 (patch) | |
tree | a3d61a062b1048d5157bc1fe643a779be8132694 /plugins | |
parent | 52e848ce8f8d7370a202e0bee07ce2c32858932e (diff) | |
download | zsh-08d5c936c670bd7e37902f64a065ba9f74452cb9.tar.gz zsh-08d5c936c670bd7e37902f64a065ba9f74452cb9.tar.bz2 zsh-08d5c936c670bd7e37902f64a065ba9f74452cb9.zip |
fix(git-auto-fetch): avoid password prompt with `GIT_TERMINAL_PROMPT=0` (#11234)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/git-auto-fetch/git-auto-fetch.plugin.zsh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh b/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh index 2e029639c..2df34bb7b 100644 --- a/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh +++ b/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh @@ -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" ) &| } |