diff options
Diffstat (limited to 'ui-snapshot.c')
-rw-r--r-- | ui-snapshot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui-snapshot.c b/ui-snapshot.c index fa3ceaf..85efe64 100644 --- a/ui-snapshot.c +++ b/ui-snapshot.c | |||
@@ -37,7 +37,7 @@ static int write_archive_type(const char *format, const char *hex, const char *p | |||
37 | /* argv_array guarantees a trailing NULL entry. */ | 37 | /* argv_array guarantees a trailing NULL entry. */ |
38 | memcpy(nargv, argv.argv, sizeof(char *) * (argv.argc + 1)); | 38 | memcpy(nargv, argv.argv, sizeof(char *) * (argv.argc + 1)); |
39 | 39 | ||
40 | result = write_archive(argv.argc, nargv, NULL, NULL, 0); | 40 | result = write_archive(argv.argc, nargv, NULL, the_repository, NULL, 0); |
41 | argv_array_clear(&argv); | 41 | argv_array_clear(&argv); |
42 | free(nargv); | 42 | free(nargv); |
43 | return result; | 43 | return result; |
@@ -147,7 +147,7 @@ static int make_snapshot(const struct cgit_snapshot_format *format, | |||
147 | "Bad object id: %s", hex); | 147 | "Bad object id: %s", hex); |
148 | return 1; | 148 | return 1; |
149 | } | 149 | } |
150 | if (!lookup_commit_reference(&oid)) { | 150 | if (!lookup_commit_reference(the_repository, &oid)) { |
151 | cgit_print_error_page(400, "Bad request", | 151 | cgit_print_error_page(400, "Bad request", |
152 | "Not a commit reference: %s", hex); | 152 | "Not a commit reference: %s", hex); |
153 | return 1; | 153 | return 1; |