remote: refactor some logic into get_stale_heads()
[gitweb.git] / builtin-rev-parse.c
index 5ea7518b0f868c0cfb58840addeb360c15835c01..45bead65451e87a4b564e59fed3518a4de9198e9 100644 (file)
@@ -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;
                        }