diff --git a/entry_with_update.py b/entry_with_update.py index 7d5f0d7b..8b20b14b 100644 --- a/entry_with_update.py +++ b/entry_with_update.py @@ -32,6 +32,7 @@ try: elif merge_result & pygit2.GIT_MERGE_ANALYSIS_FASTFORWARD: local_branch.set_target(remote_commit.id) repo.head.set_target(remote_commit.id) + repo.checkout_tree(repo.get(remote_commit.id)) print("Fast-forward merge") elif merge_result & pygit2.GIT_MERGE_ANALYSIS_NORMAL: print("Update failed - Did you modified any file?")