Made sure that .git/info/attributes is not a directory

This commit is contained in:
Michael Käufl 2015-05-31 23:32:25 +02:00
parent a381b54d80
commit a5cb344fbf

@ -113,7 +113,7 @@ func findAttributeFiles() []string {
paths := make([]string, 0)
repoAttributes := filepath.Join(lfs.LocalGitDir, "info", "attributes")
if _, err := os.Stat(repoAttributes); err == nil {
if info, err := os.Stat(repoAttributes); err == nil && !info.IsDir() {
paths = append(paths, repoAttributes)
}