This commit is contained in:
parent
3d5c0b4235
commit
e45fd3575c
|
|
@ -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?")
|
||||
|
|
|
|||
Loading…
Reference in New Issue