From e4c33940b17810ffff6f1e3f8bc88d29ca24417e Mon Sep 17 00:00:00 2001 From: lvmin Date: Fri, 11 Aug 2023 09:37:18 -0700 Subject: [PATCH] i --- entry_with_update.py | 1 + 1 file changed, 1 insertion(+) diff --git a/entry_with_update.py b/entry_with_update.py index eb1ad5df..7d5f0d7b 100644 --- a/entry_with_update.py +++ b/entry_with_update.py @@ -31,6 +31,7 @@ try: print("Already up-to-date") elif merge_result & pygit2.GIT_MERGE_ANALYSIS_FASTFORWARD: local_branch.set_target(remote_commit.id) + repo.head.set_target(remote_commit.id) print("Fast-forward merge") elif merge_result & pygit2.GIT_MERGE_ANALYSIS_NORMAL: print("Update failed - Did you modified any file?")