Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webui.sh Update: Fixed Git check for users running Stable Diffusion within their personal repositories. #14632

Closed
wants to merge 1 commit into from

Conversation

ranareehanaslam
Copy link
Contributor

@ranareehanaslam ranareehanaslam commented Jan 12, 2024

Webui.sh Update: Fixed Git check for users running Stable Diffusion within their personal repositories.

This enhancement introduces a crucial check for the existence of the 'stable-diffusion-webui' folder within the project directory. The motivation behind this addition is to mitigate potential conflicts when the project is situated within another Git repository, a situation often encountered when users operate live servers with their own Git configurations.

Previously, the absence of this check could lead to unintended interactions with the enclosing Git repository, resulting in unforeseen issues. Now, by verifying the presence of the 'stable-diffusion-webui' folder, the script ensures a more resilient and isolated deployment. If the folder exists, it is leveraged as the install directory, guaranteeing a seamless integration while minimizing the risk of interference with surrounding Git repositories.

This improvement aims to elevate compatibility and prevent unintended consequences, especially in scenarios where the project coexists within other Git-controlled environments.

Description

  • a simple description of what you're trying to accomplish
  • a summary of changes in code
  • which issues it fixes, if any

Screenshots/videos:

Checklist:

This enhancement introduces a crucial check for the existence of the 'stable-diffusion-webui' folder within the project directory. The motivation behind this addition is to mitigate potential conflicts when the project is situated within another Git repository, a situation often encountered when users operate live servers with their own Git configurations.

Previously, the absence of this check could lead to unintended interactions with the enclosing Git repository, resulting in unforeseen issues. Now, by verifying the presence of the 'stable-diffusion-webui' folder, the script ensures a more resilient and isolated deployment. If the folder exists, it is leveraged as the install directory, guaranteeing a seamless integration while minimizing the risk of interference with surrounding Git repositories.

This improvement aims to elevate compatibility and prevent unintended consequences, especially in scenarios where the project coexists within other Git-controlled environments.
@AUTOMATIC1111
Copy link
Owner

AUTOMATIC1111 commented Jan 12, 2024

The way I see it, the check will only succeed if you are in some directory that has .git in it, and you run the webui.sh as stable-diffusion-webui/webui.sh from that directory. I can't imagine people doing that. It's way too specific. It may help with some use case of yours but I don't want to add more lines of code that help almost no one.

@ranareehanaslam
Copy link
Contributor Author

ranareehanaslam commented Jan 12, 2024 via email

@ranareehanaslam
Copy link
Contributor Author

ranareehanaslam commented Jan 12, 2024 via email

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.

None yet

2 participants