void-packages/srcpkgs/slcp/patches/libgit-initializion.patch

22 lines
564 B
Diff

From 543101999ad0544e4a427afb5fbf993a55f820e1 Mon Sep 17 00:00:00 2001
From: Duncaen <mail@duncano.de>
Date: Tue, 28 Jul 2015 22:30:22 +0200
Subject: [PATCH] fix libgit initialization
---
slcp.c | 1 +
1 file changed, 1 insertion(+)
diff --git slcp.c slcp.c
index 2e9f9f4..7f12b08 100644
--- slcp.c
+++ slcp.c
@@ -100,6 +100,7 @@ int main(int argc, char* argv[])
if(argc > 1) termwidth = atoi(argv[1]);
/* init git repo */
+ git_libgit2_init();
if(!git_repository_discover(&tmpgitdb, ".", 0, NULL)
&& git_repository_open(&git_repo, tmpgitdb.ptr))
{