summaryrefslogtreecommitdiff
path: root/bolt/utils
diff options
context:
space:
mode:
authorAmir Ayupov <aaupov@fb.com>2022-08-26 19:12:17 -0700
committerAmir Ayupov <aaupov@fb.com>2022-08-26 19:12:41 -0700
commit62a034cc14ad0a8a4cd4e20818f4590e8869d18d (patch)
tree3ae2057ef9d36808f3c39553a3e9ff1adf40ad02 /bolt/utils
parent5284cf0098c150137983d9e6326fc1ac014428a6 (diff)
downloadllvm-62a034cc14ad0a8a4cd4e20818f4590e8869d18d.tar.gz
[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
Diffstat (limited to 'bolt/utils')
-rwxr-xr-xbolt/utils/nfc-check-setup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bolt/utils/nfc-check-setup.py b/bolt/utils/nfc-check-setup.py
index 30824238f0e6..dba82acfbc6a 100755
--- a/bolt/utils/nfc-check-setup.py
+++ b/bolt/utils/nfc-check-setup.py
@@ -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