Browse Source

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

Moshe Avni 2 years ago
parent
commit
af271c9e38
1 changed files with 2 additions and 1 deletions
  1. 2 1
      plugins/git-auto-fetch/git-auto-fetch.plugin.zsh

+ 2 - 1
plugins/git-auto-fetch/git-auto-fetch.plugin.zsh

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