Commit c7a7b70e authored by Jackson Delahunt's avatar Jackson Delahunt Committed by Marc Cornellà
Browse files

git-auto-fetch: silence stderr output (#7970)

Redirect stderr to avoid printing errors to the console when the ssh key is not
unlocked.
parent 7b2c4327
...@@ -5,7 +5,7 @@ function git-fetch-all { ...@@ -5,7 +5,7 @@ function git-fetch-all {
dir=`git rev-parse --git-dir` && dir=`git rev-parse --git-dir` &&
[[ ! -f $dir/NO_AUTO_FETCH ]] && [[ ! -f $dir/NO_AUTO_FETCH ]] &&
(( `date +%s` - `date -r $dir/FETCH_LOG +%s 2>/dev/null || echo 0` > $GIT_AUTO_FETCH_INTERVAL )) && (( `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 { function git-auto-fetch {
......
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