Suppress fetch password prompt

When GIT_PROMPT_FETCH_REMOTE_STATUS is nonzero, suppresses useless password prompts created by the remote status failing to be updated
Fixes magicmonty/bash-git-prompt#354
master
Justin Mohr 8 years ago
parent d9accd1f63
commit f5323ff66b
  1. 2
      gitprompt.sh

@ -432,7 +432,7 @@ function checkUpstream() {
then
if [[ -n $(git remote show) ]]; then
(
async_run "git fetch --quiet"
async_run "GIT_TERMINAL_PROMPT=0 git fetch --quiet"
disown -h
)
fi

Loading…
Cancel
Save