From 3d0291c4506f4bfa3869771e580b7304817fec00 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Fri, 6 May 2005 16:32:28 -0700 Subject: [PATCH] Do not initialize sha1_file_directory by hand. Some commands initialize sha1_file_directory by hand. There is no need to do so; sha1_file.c knows how to handle it. The next patch will remove the variable altogether. Signed-off-by: Junio C Hamano Signed-off-by: Linus Torvalds --- tar-tree.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'tar-tree.c') diff --git a/tar-tree.c b/tar-tree.c index a09cb41659..9d9bd7be98 100644 --- a/tar-tree.c +++ b/tar-tree.c @@ -418,10 +418,6 @@ int main(int argc, char **argv) usage(tar_tree_usage); } - sha1_file_directory = getenv(DB_ENVIRONMENT); - if (!sha1_file_directory) - sha1_file_directory = DEFAULT_DB_ENVIRONMENT; - buffer = read_object_with_reference(sha1, "commit", &size, commit_sha1); if (buffer) { write_global_extended_header(commit_sha1); -- cgit v1.2.3