1
0
forked from x/icebergs
This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-03-19 22:22:42 +08:00
parent e0ca977ba1
commit 3d9c99ae31

View File

@ -227,7 +227,8 @@ func _repos_status(m *ice.Message, p string, repos *git.Repository) error {
if err != nil {
return err
}
ignore := kit.Split(m.Cmdx(nfs.CAT, path.Join(_repos_path(m, p), ".gitignore")), lex.NL)
ignore := []string{}
nfs.Exists(m, path.Join(_repos_path(m, p), ".gitignore"), func(p string) { ignore = kit.Split(m.Cmdx(nfs.CAT, p), lex.NL) })
for k, v := range status {
if kit.HasPrefix(k, nfs.PT) || (kit.HasPrefix(k, ignore...) && !strings.HasPrefix(k, ice.USR_LOCAL_EXPORT)) {
continue