Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Show usage string for 'git get-tar-commit-id -h'
[gitweb.git]
/
builtin-rev-parse.c
diff --git
a/builtin-rev-parse.c
b/builtin-rev-parse.c
index 5ea7518b0f868c0cfb58840addeb360c15835c01..45bead65451e87a4b564e59fed3518a4de9198e9 100644
(file)
--- 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;
}