summaryrefslogtreecommitdiff
path: root/fsck-objects.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-11-26 07:52:04 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-11-29 07:13:02 (GMT)
commit61e2b01529d4cb4138c00a653006d16f7a9179ce (patch)
treea8519e52af08891317d9a8741722bfe45e743a93 /fsck-objects.c
parente44eb3e4c74c5f6c1fca1cf92ddb454ad248c24c (diff)
downloadgit-61e2b01529d4cb4138c00a653006d16f7a9179ce.zip
git-61e2b01529d4cb4138c00a653006d16f7a9179ce.tar.gz
git-61e2b01529d4cb4138c00a653006d16f7a9179ce.tar.bz2
fsck-objects: work from subdirectory.
Not much point making it work from subdirectory, but for a consistency make it so. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'fsck-objects.c')
-rw-r--r--fsck-objects.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fsck-objects.c b/fsck-objects.c
index 0433a1d..90e638e 100644
--- a/fsck-objects.c
+++ b/fsck-objects.c
@@ -431,6 +431,8 @@ int main(int argc, char **argv)
{
int i, heads;
+ setup_git_directory();
+
for (i = 1; i < argc; i++) {
const char *arg = argv[i];