Skip to content

Commit 608b5d4

Browse files
thurse93sisp
authored andcommitted
fix: correct git stage order on merge conflicts
1 parent d27d494 commit 608b5d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

copier/_main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,7 +1335,7 @@ def _apply_update(self) -> None: # noqa: C901
13351335
perms_sha_mode, path = line.split("\t")
13361336
perms, sha, _ = perms_sha_mode.split()
13371337
input_lines.append(f"0 {'0' * 40}\t{path}")
1338-
input_lines.append(f"{perms} {sha} 1\t{path}")
1338+
input_lines.append(f"{perms} {sha} 2\t{path}")
13391339
with suppress(ProcessExecutionError):
13401340
# The following command will fail
13411341
# if the file did not exist in the previous version.
@@ -1344,7 +1344,7 @@ def _apply_update(self) -> None: # noqa: C901
13441344
"-w",
13451345
old_path / normalize_git_path(path),
13461346
).strip()
1347-
input_lines.append(f"{perms} {old_sha} 2\t{path}")
1347+
input_lines.append(f"{perms} {old_sha} 1\t{path}")
13481348
with suppress(ProcessExecutionError):
13491349
# The following command will fail
13501350
# if the file was deleted in the latest version.

0 commit comments

Comments
 (0)