Selaa lähdekoodia

Woops: reignore .stignore

Jakob Borg 12 vuotta sitten
vanhempi
sitoutus
cb33f27f23
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5 0
      model/walk.go

+ 5 - 0
model/walk.go

@@ -92,6 +92,11 @@ func (m *Model) walkAndHashFiles(res *[]File, ign map[string][]string) filepath.
 			return nil
 		}
 
+		if _, sn := path.Split(rn); sn == ".stignore" {
+			// We never sync the .stignore files
+			return nil
+		}
+
 		if ignoreFile(ign, rn) {
 			if m.trace["file"] {
 				log.Println("FILE: IGNORE:", rn)