Skip to content

Commit de1131f

Browse files
committed
Update comment
1 parent 5f94be6 commit de1131f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/git/attribute/checker.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ func checkAttrCommand(gitRepo *git.Repository, treeish string, filenames, attrib
4040
cancel = deleteTemporaryFile
4141
}
4242
} else if cached {
43-
// read from existing index instead of working tree, in cases where the repo is bare or the working tree contains
44-
// unstaged changes that shouldn't affect the attribute check
43+
// read from existing index instead of work tree, in cases where the repo is bare and has an index or the work tree
44+
// contains unstaged changes that shouldn't affect the attribute check
4545
cmd.AddArguments("--cached")
4646
} // else: no treeish, assume it is a not a bare repo, read from working directory
4747

0 commit comments

Comments
 (0)