Browse Source

Test for previous commit and never ignore entire repo directory

Jakob Borg 11 years ago
parent
commit
b3c2ffc96a
2 changed files with 1 additions and 1 deletions
  1. 0 0
      scanner/testdata/.foo/bar
  2. 1 1
      scanner/walk.go

+ 0 - 0
scanner/testdata/.foo/bar


+ 1 - 1
scanner/walk.go

@@ -160,7 +160,7 @@ func (w *Walker) walkAndHashFiles(res *[]File, ign map[string][]string) filepath
 			return nil
 		}
 
-		if w.ignoreFile(ign, rn) {
+		if rn != "." && w.ignoreFile(ign, rn) {
 			if debug {
 				dlog.Println("ignored:", rn)
 			}