forked from OSchip/llvm-project
[BOLT][UTILS] Stash including untracked in nfc-check-setup
The command to detect whether the stash is needed is `git status --porcelain` which includes untracked files by default. We want to stash untracked files as well as they may affect compilation (LLVM CMake checks that all source files should be included in CMakeLists). Update the stash command to include untracked files as well. Reviewed By: #bolt, rafauler Differential Revision: https://reviews.llvm.org/D132610
This commit is contained in:
parent
5284cf0098
commit
62a034cc14
|
@ -59,7 +59,7 @@ def main():
|
|||
text=True).stdout
|
||||
if stash:
|
||||
# save local changes before checkout
|
||||
subprocess.run(shlex.split("git stash"), cwd=source_dir)
|
||||
subprocess.run(shlex.split("git stash push -u"), cwd=source_dir)
|
||||
# check out the previous commit
|
||||
subprocess.run(shlex.split("git checkout -f HEAD^"), cwd=source_dir)
|
||||
# get the parent commit hash for logging
|
||||
|
|
Loading…
Reference in New Issue