summaryrefslogtreecommitdiff
path: root/git-hist.c
diff options
context:
space:
mode:
Diffstat (limited to 'git-hist.c')
-rw-r--r--git-hist.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/git-hist.c b/git-hist.c
index 53e66c5..3367b9d 100644
--- a/git-hist.c
+++ b/git-hist.c
@@ -17,6 +17,7 @@
#include "util.h"
#include "main.h"
+#include "git-util.h"
#include "git-file.h"
#include "git-hist.h"
@@ -130,7 +131,7 @@ bool vcs_git_try(const char *path)
{
git_repository *repo;
- vcs_git_init();
+ git_init_once();
if (git_repository_open_ext(&repo, path,
GIT_REPOSITORY_OPEN_CROSS_FS, NULL))
@@ -148,7 +149,7 @@ struct hist *vcs_git_hist(const char *path)
head = new_commit(0);
- vcs_git_init();
+ git_init_once();
if (git_repository_open_ext(&repo, path,
GIT_REPOSITORY_OPEN_CROSS_FS, NULL)) {