Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
07f6a1a6
"PTDN/docs/test_train_inference_python.md" did not exist on "dd01ffe6e98c614a1039caf250741990a4173a96"
Commit
07f6a1a6
authored
Jul 27, 2024
by
comfyanonymous
Browse files
Handle case in the updater when master branch is not in local repo.
parent
e746965c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
.ci/update_windows/update.py
.ci/update_windows/update.py
+9
-2
No files found.
.ci/update_windows/update.py
View file @
07f6a1a6
...
@@ -62,8 +62,15 @@ except:
...
@@ -62,8 +62,15 @@ except:
print
(
"checking out master branch"
)
print
(
"checking out master branch"
)
branch
=
repo
.
lookup_branch
(
'master'
)
branch
=
repo
.
lookup_branch
(
'master'
)
ref
=
repo
.
lookup_reference
(
branch
.
name
)
if
branch
is
None
:
repo
.
checkout
(
ref
)
ref
=
repo
.
lookup_reference
(
'refs/remotes/origin/master'
)
repo
.
checkout
(
ref
)
branch
=
repo
.
lookup_branch
(
'master'
)
if
branch
is
None
:
repo
.
create_branch
(
'master'
,
repo
.
get
(
ref
.
target
))
else
:
ref
=
repo
.
lookup_reference
(
branch
.
name
)
repo
.
checkout
(
ref
)
print
(
"pulling latest changes"
)
print
(
"pulling latest changes"
)
pull
(
repo
)
pull
(
repo
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment