From 4c0a16d9bc06b273ec550efc837e90178bb7463e Mon Sep 17 00:00:00 2001 From: lllyasviel Date: Wed, 4 Oct 2023 13:09:34 -0700 Subject: [PATCH] fix pygit2 (#536) --- fooocus_version.py | 2 +- modules/launch_util.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/fooocus_version.py b/fooocus_version.py index a499f681..dacf52b6 100644 --- a/fooocus_version.py +++ b/fooocus_version.py @@ -1 +1 @@ -version = '2.0.85' +version = '2.0.86' diff --git a/modules/launch_util.py b/modules/launch_util.py index aadafc7e..4fc3eaf8 100644 --- a/modules/launch_util.py +++ b/modules/launch_util.py @@ -58,6 +58,8 @@ def git_clone(url, dir, name, hash=None): commit = repo.get(hash) repo.checkout_tree(commit, strategy=pygit2.GIT_CHECKOUT_FORCE) + repo.set_head(commit.id) + print(f'{name} checkout finished for {hash}.') except Exception as e: print(f'Git clone failed for {name}: {str(e)}')