Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cache.h2
-rw-r--r--environment.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/cache.h b/cache.h
index 281f00ab1b..d8b0dc2ff1 100644
--- a/cache.h
+++ b/cache.h
@@ -567,7 +567,7 @@ extern char *git_work_tree_cfg;
int is_inside_work_tree(void);
const char *get_git_dir(void);
const char *get_git_common_dir(void);
-char *get_object_directory(void);
+const char *get_object_directory(void);
char *get_index_file(void);
char *get_graft_file(struct repository *r);
void set_git_dir(const char *path, int make_realpath);
diff --git a/environment.c b/environment.c
index fd0501e77a..4e49ee0d60 100644
--- a/environment.c
+++ b/environment.c
@@ -271,7 +271,7 @@ const char *get_git_work_tree(void)
return the_repository->worktree;
}
-char *get_object_directory(void)
+const char *get_object_directory(void)
{
if (!the_repository->objects->odb)
BUG("git environment hasn't been setup");