summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2010-10-02 08:35:29 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-10-03 23:50:54 (GMT)
commit7f7868eadce9b6a9d93e7e8bc80fd58c5e64cc67 (patch)
treec7aa22fc0bf30e1ba597d797d1863ce547e7e985
parent8695353147e0c20fc8197fd73efec2ca9bce0304 (diff)
downloadgit-7f7868eadce9b6a9d93e7e8bc80fd58c5e64cc67.zip
git-7f7868eadce9b6a9d93e7e8bc80fd58c5e64cc67.tar.gz
git-7f7868eadce9b6a9d93e7e8bc80fd58c5e64cc67.tar.bz2
environment.c: remove unused variable
After v1.6.0-rc0~230^2^ (environment.c: remove unused function, 2008-06-19), git_refs_dir is not used any more. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--environment.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/environment.c b/environment.c
index 2d0c315..c44a30b 100644
--- a/environment.c
+++ b/environment.c
@@ -64,7 +64,7 @@ char *git_work_tree_cfg;
static char *work_tree;
static const char *git_dir;
-static char *git_object_dir, *git_index_file, *git_refs_dir, *git_graft_file;
+static char *git_object_dir, *git_index_file, *git_graft_file;
/*
* Repository-local GIT_* environment variables
@@ -96,8 +96,6 @@ static void setup_git_env(void)
git_object_dir = xmalloc(strlen(git_dir) + 9);
sprintf(git_object_dir, "%s/objects", git_dir);
}
- git_refs_dir = xmalloc(strlen(git_dir) + 6);
- sprintf(git_refs_dir, "%s/refs", git_dir);
git_index_file = getenv(INDEX_ENVIRONMENT);
if (!git_index_file) {
git_index_file = xmalloc(strlen(git_dir) + 7);