Skip to content

Commit 55e2c26

Browse files
committed
add run_always to recently migrated start_process command
1 parent 05e1ae7 commit 55e2c26

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/bootstrap/src/utils/channel.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,19 @@ impl GitInfo {
6666
.arg("-1")
6767
.arg("--date=short")
6868
.arg("--pretty=format:%cd")
69+
.run_always()
6970
.start_capture_stdout(&exec_ctx);
7071

7172
let mut git_hash_cmd = helpers::git(Some(dir));
72-
let ver_hash = git_hash_cmd.arg("rev-parse").arg("HEAD").start_capture_stdout(&exec_ctx);
73+
let ver_hash =
74+
git_hash_cmd.arg("rev-parse").arg("HEAD").run_always().start_capture_stdout(&exec_ctx);
7375

7476
let mut git_short_hash_cmd = helpers::git(Some(dir));
7577
let short_ver_hash = git_short_hash_cmd
7678
.arg("rev-parse")
7779
.arg("--short=9")
7880
.arg("HEAD")
81+
.run_always()
7982
.start_capture_stdout(&exec_ctx);
8083

8184
GitInfo::Present(Some(Info {

0 commit comments

Comments
 (0)