Merging upstream version 4.2.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
f3d71e86d5
commit
4f187f2e34
9 changed files with 121 additions and 18 deletions
|
@ -141,6 +141,15 @@ def test_get_conflicted_files_unstaged_files(in_merge_conflict):
|
|||
assert ret == {'conflict_file'}
|
||||
|
||||
|
||||
def test_get_conflicted_files_with_file_named_head(in_merge_conflict):
|
||||
resolve_conflict()
|
||||
open('HEAD', 'w').close()
|
||||
cmd_output('git', 'add', 'HEAD')
|
||||
|
||||
ret = set(git.get_conflicted_files())
|
||||
assert ret == {'conflict_file', 'HEAD'}
|
||||
|
||||
|
||||
MERGE_MSG = b"Merge branch 'foo' into bar\n\nConflicts:\n\tconflict_file\n"
|
||||
OTHER_MERGE_MSG = MERGE_MSG + b'\tother_conflict_file\n'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue