Skip to content

Commit 8a64881

Browse files
szedergitster
authored andcommitted
path.c: mark 'logs/HEAD' in 'common_list' as file
'logs/HEAD', i.e. HEAD's reflog, is a file, but its entry in 'common_list' has the 'is_dir' bit set. Unset that bit to make it consistent with what 'logs/HEAD' is supposed to be. This doesn't make a difference in behavior: check_common() is the only function that looks at the 'is_dir' bit, and that function either returns 0, or '!exclude', which for 'logs/HEAD' results in 0 as well. Signed-off-by: SZEDER Gábor <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7cb8c92 commit 8a64881

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

path.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ static struct common_dir common_list[] = {
113113
{ 0, 1, 0, "info" },
114114
{ 0, 0, 1, "info/sparse-checkout" },
115115
{ 1, 1, 0, "logs" },
116-
{ 1, 1, 1, "logs/HEAD" },
116+
{ 1, 0, 1, "logs/HEAD" },
117117
{ 0, 1, 1, "logs/refs/bisect" },
118118
{ 0, 1, 1, "logs/refs/rewritten" },
119119
{ 0, 1, 1, "logs/refs/worktree" },

0 commit comments

Comments
 (0)