Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
NO_IPV6 support for git daemon
[gitweb.git]
/
sha1_file.c
diff --git
a/sha1_file.c
b/sha1_file.c
index 66382027816e8ec3a97c40f6849c62454f2ad0f2..fe374c6132a74641959e201f8c03dd9952e9acee 100644
(file)
--- a/
sha1_file.c
+++ b/
sha1_file.c
@@
-70,6
+70,13
@@
static void setup_git_env(void)
git_graft_file = strdup(git_path("info/grafts"));
}
+char *get_git_dir(void)
+{
+ if (!git_dir)
+ setup_git_env();
+ return git_dir;
+}
+
char *get_object_directory(void)
{
if (!git_object_dir)