Merge branch 'cb/uname-in-untracked' into maint
An experimental "untracked cache" feature used uname(2) in a slightly unportable way. * cb/uname-in-untracked: untracked: fix detection of uname(2) failure
This commit is contained in:
commit
b083703ce3
2
dir.c
2
dir.c
@ -1848,7 +1848,7 @@ static const char *get_ident_string(void)
|
||||
|
||||
if (sb.len)
|
||||
return sb.buf;
|
||||
if (uname(&uts))
|
||||
if (uname(&uts) < 0)
|
||||
die_errno(_("failed to get kernel name and information"));
|
||||
strbuf_addf(&sb, "Location %s, system %s %s %s", get_git_work_tree(),
|
||||
uts.sysname, uts.release, uts.version);
|
||||
|
Loading…
Reference in New Issue
Block a user