1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-18 02:20:09 +00:00

feat(git-auto-fetch): add date to git-auto-fetch log file (#10021)

This commit is contained in:
Moshe Avni 2021-09-06 18:56:39 +03:00 committed by GitHub
parent ab8b9913cb
commit af271c9e38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,8 +25,9 @@ function git-fetch-all {
fi
# Fetch all remotes (avoid ssh passphrase prompt)
date -R &>! "$gitdir/FETCH_LOG"
GIT_SSH_COMMAND="command ssh -o BatchMode=yes" \
command git fetch --all 2>/dev/null &>! "$gitdir/FETCH_LOG"
command git fetch --all 2>/dev/null &>> "$gitdir/FETCH_LOG"
) &|
}