mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-29 04:53:17 +02:00
ci(deps): detect add-only vendored changes (#13765)
This commit is contained in:
parent
b26b500263
commit
fb03e414ee
1 changed files with 5 additions and 3 deletions
8
.github/workflows/dependencies/updater.py
vendored
8
.github/workflows/dependencies/updater.py
vendored
|
|
@ -392,13 +392,15 @@ class Git:
|
|||
Returns `False` if the repo is dirty.
|
||||
"""
|
||||
try:
|
||||
CommandRunner.run_or_fail(
|
||||
["git", "diff", "--exit-code"], stage="CheckRepoClean"
|
||||
result = CommandRunner.run_or_fail(
|
||||
["git", "status", "--porcelain", "--untracked-files=normal"],
|
||||
stage="CheckRepoClean",
|
||||
)
|
||||
return True
|
||||
except CommandRunner.Exception:
|
||||
return False
|
||||
|
||||
return result.stdout.strip() == b""
|
||||
|
||||
@staticmethod
|
||||
def add_and_commit(scope: str, version: str) -> bool:
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue