This commit is contained in:
wailovet
2024-06-19 02:45:29 +08:00
parent 290ebe106a
commit a97ae99ddb
+2 -2
View File
@@ -33,9 +33,9 @@ def MZ_KohyaSSInitWorkspace_call(args={}):
result = subprocess.run(
["git", "branch"], cwd=kohya_ss_lora_dir, stdout=subprocess.PIPE, check=True)
print(f"current branch: {result.stdout}")
print(f"current branch: {result.stdout.decode()}")
if branch.encode() not in result.stdout:
if branch not in result.stdout.decode():
subprocess.run(
["git", "remote", "set-branches", "origin", branch], cwd=kohya_ss_lora_dir, check=True)
subprocess.run(