Skip to content

Commit 216969b

Browse files
committed
run git only inside the current directory
Signed-off-by: onur-ozkan <work@onurozkan.dev>
1 parent ffd4c5b commit 216969b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bootstrap/src/utils/build_stamp.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,15 @@ pub fn generate_smart_stamp_hash(
168168
let diff = helpers::git(Some(dir))
169169
.allow_failure()
170170
.arg("diff")
171+
.arg(".")
171172
.run_capture_stdout(builder)
172173
.stdout_if_ok()
173174
.unwrap_or_default();
174175

175176
let status = helpers::git(Some(dir))
176177
.allow_failure()
177178
.arg("status")
179+
.arg(".")
178180
.arg("--porcelain")
179181
.arg("-z")
180182
.arg("--untracked-files=normal")

0 commit comments

Comments
 (0)