OSDN Git Service
(root)
/
git-core
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
technical-docs: document hash API
[git-core/git.git]
/
builtin-rev-parse.c
diff --git
a/builtin-rev-parse.c
b/builtin-rev-parse.c
index
5ea7518
..
45bead6
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;
}