summaryrefslogtreecommitdiff
path: root/pack-redundant.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2005-11-26 00:50:02 -0800
committerLibravatar Junio C Hamano <junkio@cox.net>2005-11-28 23:13:02 -0800
commit53228a5fb8e80f87803e4a3ba8ed25b70fb4871d (patch)
tree0097d17996b5c71f3fb386eef354c84ffa3caaf2 /pack-redundant.c
parentMake networking commands to work from a subdirectory. (diff)
downloadtgif-53228a5fb8e80f87803e4a3ba8ed25b70fb4871d.tar.xz
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-redundant.c')
-rw-r--r--pack-redundant.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pack-redundant.c b/pack-redundant.c
index 793fa08096..0a43278924 100644
--- a/pack-redundant.c
+++ b/pack-redundant.c
@@ -600,6 +600,8 @@ int main(int argc, char **argv)
unsigned char *sha1;
char buf[42]; /* 40 byte sha1 + \n + \0 */
+ setup_git_directory();
+
for (i = 1; i < argc; i++) {
const char *arg = argv[i];
if(!strcmp(arg, "--")) {