aboutsummaryrefslogtreecommitdiff
path: root/ui-patch.c
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'ui-patch.c')
-rw-r--r--ui-patch.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ui-patch.c b/ui-patch.c
index f9d2eeb..3819a81 100644
--- a/ui-patch.c
+++ b/ui-patch.c
@@ -6,8 +6,6 @@
* (see COPYING for full license text)
*/
-#define USE_THE_REPOSITORY_VARIABLE
-
#include "cgit.h"
#include "ui-patch.h"
#include "html.h"
@@ -59,7 +57,7 @@ void cgit_print_patch(const char *new_rev, const char *old_rev,
} else if (commit->parents && commit->parents->item) {
oidcpy(&old_rev_oid, &commit->parents->item->object.oid);
} else {
- oidclr(&old_rev_oid, the_repository->hash_algo);
+ oidclr(&old_rev_oid);
}
if (is_null_oid(&old_rev_oid)) {