summaryrefslogtreecommitdiffstats
path: root/tests/hawd/state.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hawd/state.cpp')
-rw-r--r--tests/hawd/state.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/hawd/state.cpp b/tests/hawd/state.cpp
index dfeef41..a994718 100644
--- a/tests/hawd/state.cpp
+++ b/tests/hawd/state.cpp
@@ -117,7 +117,7 @@ void State::findGitHash()
117{ 117{
118#ifdef HAVE_LIBGIT2 118#ifdef HAVE_LIBGIT2
119 git_libgit2_init(); 119 git_libgit2_init();
120 git_buf root = {0}; 120 git_buf root = GIT_BUF_INIT_CONST(0, 0);
121 int error = git_repository_discover(&root, projectPath().toStdString().data(), 0, NULL); 121 int error = git_repository_discover(&root, projectPath().toStdString().data(), 0, NULL);
122 if (!error) { 122 if (!error) {
123 git_repository *repo = NULL; 123 git_repository *repo = NULL;