| ... | @@ -15,7 +15,7 @@ pub fn execute(args: [][]u8) !void { | ... | @@ -15,7 +15,7 @@ pub fn execute(args: [][]u8) !void { |
| 15 | const version = if (@hasDecl(build_options, "version")) build_options.version else "unknown"; | 15 | const version = if (@hasDecl(build_options, "version")) build_options.version else "unknown"; |
| 16 | | 16 | |
| 17 | var gitversion = u.git_rev_HEAD(gpa, std.fs.cwd()) catch ""; | 17 | var gitversion = u.git_rev_HEAD(gpa, std.fs.cwd()) catch ""; |
| 18 | gitversion = if (gitversion.len > 0) gitversion[0..7] else gitversion; | 18 | gitversion = if (gitversion.len > 0) gitversion[0..9] else gitversion; |
| 19 | | 19 | |
| 20 | const stdout = std.io.getStdOut(); | 20 | const stdout = std.io.getStdOut(); |
| 21 | const w = stdout.writer(); | 21 | const w = stdout.writer(); |