E56B fix: crash on ambiguous ref 'HEAD' · pre-commit/pre-commit@d51bdbf · GitHub
[go: up one dir, main page]

Skip to content

Commit d51bdbf

Browse files
fix: crash on ambiguous ref 'HEAD'
1 parent 7b88c63 commit d51bdbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pre_commit/git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def get_conflicted_files() -> set[str]:
126126
merge_diff_filenames = zsplit(
127127
cmd_output(
128128
'git', 'diff', '--name-only', '--no-ext-diff', '-z',
129-
'-m', tree_hash, 'HEAD', 'MERGE_HEAD',
129+
'-m', tree_hash, 'HEAD', 'MERGE_HEAD', '--',
130130
)[1],
131131
)
132132
return set(merge_conflict_filenames) | set(merge_diff_filenames)

0 commit comments

Comments
 (0)
0