c7a7b70e074be0ecc50d1447c6161207f01984dc
- Author
- Jackson Delahunt <jackson@jacksondelahunt.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
git-auto-fetch: silence stderr output (#7970)
Redirect stderr to avoid printing errors to the console when the ssh key is not
unlocked.
Diff
1diff --git a/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh b/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
2index 1d20bc04bc9f772ee3c15c870fd5ff2e0dc42339..745c669b5a51d884a849e104397a97d0041e2354 100644
3--- a/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
4+++ b/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
5@@ -5,7 +5,7 @@ function git-fetch-all {
6 dir=`git rev-parse --git-dir` &&
7 [[ ! -f $dir/NO_AUTO_FETCH ]] &&
8 (( `date +%s` - `date -r $dir/FETCH_LOG +%s 2>/dev/null || echo 0` > $GIT_AUTO_FETCH_INTERVAL )) &&
9- git fetch --all &>! $dir/FETCH_LOG &)
10+ git fetch --all 2>/dev/null &>! $dir/FETCH_LOG &)
11 }
12
13 function git-auto-fetch {