8362ae285a5c227cb20387543483a3597fa31931

Author
Felix Stupp <me+github@banananet.work>
Committer
GitHub <noreply@github.com>
Date

Message

fix(git-auto-fetch): don't override native `stat` command (#11068)

Diff

 1diff --git a/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh b/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
 2index efe8cbe66d13ccf35be22bb2e6e3160c1b89fb4c..2e029639c719c76b49a564adf14adac7e572f584 100644
 3--- a/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
 4+++ b/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
 5@@ -2,7 +2,8 @@
 6 : ${GIT_AUTO_FETCH_INTERVAL:=60}
 7 
 8 # Necessary for the git-fetch-all function
 9-zmodload zsh/datetime zsh/stat
10+zmodload zsh/datetime
11+zmodload -F zsh/stat b:zstat  # only zstat command, not stat command
12 
13 function git-fetch-all {
14   (