stash: convert pop to builtin
[gitweb.git] / builtin / archive.c
index 73971d0dd20e7233d6cb1e6c16986ede25526939..d2455237ce04d68de624ed60157dc90a4ee4e477 100644 (file)
@@ -97,6 +97,8 @@ int cmd_archive(int argc, const char **argv, const char *prefix)
        argc = parse_options(argc, argv, prefix, local_opts, NULL,
                             PARSE_OPT_KEEP_ALL);
 
+       init_archivers();
+
        if (output)
                create_output_file(output);
 
@@ -105,5 +107,5 @@ int cmd_archive(int argc, const char **argv, const char *prefix)
 
        setvbuf(stderr, NULL, _IOLBF, BUFSIZ);
 
-       return write_archive(argc, argv, prefix, output, 0);
+       return write_archive(argc, argv, prefix, the_repository, output, 0);
 }