Explorar o código

[annex] detect does not match on "annex" only

cgars %!s(int64=8) %!d(string=hai) anos
pai
achega
8e63a15146
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      pkg/tool/file.go

+ 1 - 1
pkg/tool/file.go

@@ -25,7 +25,7 @@ func IsAnnexedFile(data []byte) bool {
 		data = data[:ANNEXSNIFFSIZE]
 	}
 	if strings.Contains(http.DetectContentType(data), "text/") {
-		return strings.Contains(string(data), "annex")
+		return strings.Contains(string(data), ".git/annex")
 	}
 	return false
 }