X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-rev-parse.c;h=45bead65451e87a4b564e59fed3518a4de9198e9;hb=aa8dc9679a6a7daea261abe969af331c741a9f2c;hp=5ea7518b0f868c0cfb58840addeb360c15835c01;hpb=ea1b9b948da8ec3fec186d56e0b33ee07842601a;p=git.git diff --git a/builtin-rev-parse.c b/builtin-rev-parse.c index 5ea7518b0..45bead654 100644 --- a/builtin-rev-parse.c +++ b/builtin-rev-parse.c @@ -596,7 +596,7 @@ int cmd_rev_parse(int argc, const char **argv, const char *prefix) continue; } if (!getcwd(cwd, PATH_MAX)) - die("unable to get current working directory"); + die_errno("unable to get current working directory"); printf("%s/.git\n", cwd); continue; }