This commit is contained in:
lvmin 2023-08-11 09:48:59 -07:00
parent 3d5c0b4235
commit e45fd3575c

View File

@ -33,6 +33,7 @@ try:
local_branch.set_target(remote_commit.id)
repo.head.set_target(remote_commit.id)
repo.checkout_tree(repo.get(remote_commit.id))
repo.reset(local_branch.target, pygit2.GIT_RESET_HARD)
print("Fast-forward merge")
elif merge_result & pygit2.GIT_MERGE_ANALYSIS_NORMAL:
print("Update failed - Did you modified any file?")