瀏覽代碼

Woops: reignore .stignore

Jakob Borg 12 年之前
父節點
當前提交
cb33f27f23
共有 1 個文件被更改,包括 5 次插入0 次删除
  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)