summaryrefslogtreecommitdiff
path: root/ls-tree.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-05-06 23:32:28 (GMT)
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-07 00:00:20 (GMT)
commit3d0291c4506f4bfa3869771e580b7304817fec00 (patch)
treed0d0625749d899ca21fcceb3ce9d2c650389272e /ls-tree.c
parentee267527aa80807f37caf1d00bcf1b5263945adb (diff)
downloadgit-3d0291c4506f4bfa3869771e580b7304817fec00.zip
git-3d0291c4506f4bfa3869771e580b7304817fec00.tar.gz
git-3d0291c4506f4bfa3869771e580b7304817fec00.tar.bz2
[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 <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'ls-tree.c')
-rw-r--r--ls-tree.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/ls-tree.c b/ls-tree.c
index 339ac36..7f8f864 100644
--- a/ls-tree.c
+++ b/ls-tree.c
@@ -104,9 +104,6 @@ int main(int argc, char **argv)
usage(ls_tree_usage);
if (get_sha1(argv[1], sha1) < 0)
usage(ls_tree_usage);
- sha1_file_directory = getenv(DB_ENVIRONMENT);
- if (!sha1_file_directory)
- sha1_file_directory = DEFAULT_DB_ENVIRONMENT;
if (list(sha1) < 0)
die("list failed");
return 0;