1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2026-07-14 17:03:02 +02:00

ci(deps): detect add-only vendored changes (#13765)

This commit is contained in:
Minh Vu
2026-05-28 18:54:11 +02:00
committed by GitHub
parent b26b500263
commit fb03e414ee
+5 -3
View File
@@ -392,13 +392,15 @@ class Git:
Returns `False` if the repo is dirty. Returns `False` if the repo is dirty.
""" """
try: try:
CommandRunner.run_or_fail( result = CommandRunner.run_or_fail(
["git", "diff", "--exit-code"], stage="CheckRepoClean" ["git", "status", "--porcelain", "--untracked-files=normal"],
stage="CheckRepoClean",
) )
return True
except CommandRunner.Exception: except CommandRunner.Exception:
return False return False
return result.stdout.strip() == b""
@staticmethod @staticmethod
def add_and_commit(scope: str, version: str) -> bool: def add_and_commit(scope: str, version: str) -> bool:
""" """