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
commit fb03e414ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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:
"""