Skip to content

Commit

Permalink
Merge pull request #69 from saritasa-nest/fix-git-blame-script
Browse files Browse the repository at this point in the history
Fix git blame copy script
  • Loading branch information
yalef authored Feb 9, 2024
2 parents f71bdaf + e9160ed commit 51a8369
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ We follow [Semantic Versions](https://semver.org/).

## unreleased

Fix `git.blame-copy` in case if merge conflict between files occurs.

## 1.0.0

First stable release
Expand Down
9 changes: 8 additions & 1 deletion saritasa_invocations/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,14 @@ def _merge_commits(
message: str,
) -> None:
"""Merge passed commits."""
context.run(f"git merge {' '.join(commits)} -m '{message}'")
context.run(
f"git merge {' '.join(commits)} -m '{message}'",
warn=True,
)
# create commit in case if merge conflict occurs
context.run(
f"git commit --no-verify -a -n -m '{message}'",
)


def _move_file(
Expand Down

0 comments on commit 51a8369

Please sign in to comment.