Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
refactor userdiff textconv code
[gitweb.git]
/
environment.c
diff --git
a/environment.c
b/environment.c
index 0c6d11f6a0c6fa5dbab2f36c4b4ad4de5aba4ac9..0693cd9a42adf4914bb219ecf24fc6d5da7aafd3 100644
(file)
--- a/
environment.c
+++ b/
environment.c
@@
-80,6
+80,11
@@
int is_bare_repository(void)
return is_bare_repository_cfg && !get_git_work_tree();
}
+int have_git_dir(void)
+{
+ return !!git_dir;
+}
+
const char *get_git_dir(void)
{
if (!git_dir)