mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-10-02 16:03:47 +02:00
git-auto-fetch: silence stderr output (#7970)
Redirect stderr to avoid printing errors to the console when the ssh key is not unlocked.
This commit is contained in:
1 parent
7b2c4327e7
commit
c7a7b70e07
1 file changed
+1
-1
@@ -5,7 +5,7 @@ function git-fetch-all {
|
||||
dir=`git rev-parse --git-dir` &&
|
||||
[[ ! -f $dir/NO_AUTO_FETCH ]] &&
|
||||
(( `date +%s` - `date -r $dir/FETCH_LOG +%s 2>/dev/null || echo 0` > $GIT_AUTO_FETCH_INTERVAL )) &&
|
||||
git fetch --all &>! $dir/FETCH_LOG &)
|
||||
git fetch --all 2>/dev/null &>! $dir/FETCH_LOG &)
|
||||
}
|
||||
|
||||
function git-auto-fetch {
|
||||
|
||||
Reference in new issue
Block a user