summaryrefslogtreecommitdiffstats
path: root/pack-objects.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-11-26 09:50:02 +0100
committerJunio C Hamano <junkio@cox.net>2005-11-29 08:13:02 +0100
commit53228a5fb8e80f87803e4a3ba8ed25b70fb4871d (patch)
tree0097d17996b5c71f3fb386eef354c84ffa3caaf2 /pack-objects.c
parentMake networking commands to work from a subdirectory. (diff)
downloadgit-53228a5fb8e80f87803e4a3ba8ed25b70fb4871d.tar.xz
git-53228a5fb8e80f87803e4a3ba8ed25b70fb4871d.zip
Make the rest of commands work from a subdirectory.
These commands are converted to run from a subdirectory. commit-tree convert-objects merge-base merge-index mktag pack-objects pack-redundant prune-packed read-tree tar-tree unpack-file unpack-objects update-server-info write-tree Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'pack-objects.c')
-rw-r--r--pack-objects.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pack-objects.c b/pack-objects.c
index 8864a31cc1..a62c9f8d18 100644
--- a/pack-objects.c
+++ b/pack-objects.c
@@ -473,6 +473,8 @@ int main(int argc, char **argv)
struct object_entry **list;
int i;
+ setup_git_directory();
+
for (i = 1; i < argc; i++) {
const char *arg = argv[i];