| ... | ... | @@ -257,13 +257,10 @@ pub fn build(b: *std.Build) !void { |
| 257 | 257 | var code: u8 = undefined; |
| 258 | 258 | const git_describe_untrimmed = b.runAllowFail(&[_][]const u8{ |
| 259 | 259 | "git", |
| 260 | | "-C", |
| 261 | | b.build_root.path orelse ".", |
| 262 | | "describe", |
| 263 | | "--match", |
| 264 | | "*.*.*", |
| 265 | | "--tags", |
| 266 | | "--abbrev=9", |
| 260 | "-C", b.build_root.path orelse ".", // affects the --git-dir argument |
| 261 | "--git-dir", ".git", // affected by the -C argument |
| 262 | "describe", "--match", "*.*.*", // |
| 263 | "--tags", "--abbrev=9", |
| 267 | 264 | }, &code, .Ignore) catch { |
| 268 | 265 | break :v version_string; |
| 269 | 266 | }; |