aboutsummaryrefslogtreecommitdiff
path: root/fsck-cache.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-05-07 00:38:04 -0700
committerJunio C Hamano <junkio@cox.net>2005-05-07 00:38:04 -0700
commitace1534d6f3a710ed82e7e27ba1fe77c0c278695 (patch)
treea8b92a9405d6e76f4be1fe36a3bc09033f86d7f1 /fsck-cache.c
parente7d3dd248f50501f98b29c917e70bddcf3ea925a (diff)
downloadgit-ace1534d6f3a710ed82e7e27ba1fe77c0c278695.tar.gz
git-ace1534d6f3a710ed82e7e27ba1fe77c0c278695.tar.xz
Introduce SHA1_FILE_DIRECTORIES to support multiple object databases.
SHA1_FILE_DIRECTORIES environment variable is a colon separated paths used when looking for SHA1 files not found in the usual place for reading. Creating a new SHA1 file does not use this alternate object database location mechanism. This is useful to archive older, rarely used objects into separate directories. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'fsck-cache.c')
-rw-r--r--fsck-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fsck-cache.c b/fsck-cache.c
index abdec92ff..d59d57ea7 100644
--- a/fsck-cache.c
+++ b/fsck-cache.c
@@ -306,7 +306,7 @@ int main(int argc, char **argv)
usage("fsck-cache [--tags] [[--unreachable] [--cache] <head-sha1>*]");
}
- sha1_dir = getenv(DB_ENVIRONMENT) ? : DEFAULT_DB_ENVIRONMENT;
+ sha1_dir = get_object_directory();
for (i = 0; i < 256; i++) {
static char dir[4096];
sprintf(dir, "%s/%02x", sha1_dir, i);