Skip to content

fix(launch): robust fallback in git_fix_workspace and format checkout error - #17474

Open
loulanyue wants to merge 1 commit into
AUTOMATIC1111:masterfrom
loulanyue:fix/17455-git-clone-unshallow-fetch-autofix
Open

fix(launch): robust fallback in git_fix_workspace and format checkout error#17474
loulanyue wants to merge 1 commit into
AUTOMATIC1111:masterfrom
loulanyue:fix/17455-git-clone-unshallow-fetch-autofix

Conversation

@loulanyue

Copy link
Copy Markdown

Description

Fixes #17455

  1. In git_fix_workspace, if fetch --refetch --no-auto-gc fails (e.g. on git versions without --refetch support or when tags/commits are not fetched), fall back to git fetch --all --tags.
  2. Fix unformatted string in git_clone error message so {name} and {commithash} are properly interpolated.

… error

- Fall back to git fetch --all --tags in git_fix_workspace if --refetch is unsupported
- Fix f-string formatting in git_clone error message

Fixes AUTOMATIC1111#17455
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Couldn't checkout commit 45c443b316737a4ab6e40413d7794a7f5657c19f for Stable Diffusion XL.

1 participant