diff options
-rw-r--r-- | gentoobrowse-api/service/utils/git.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gentoobrowse-api/service/utils/git.cpp b/gentoobrowse-api/service/utils/git.cpp index 5eae2a6..1dd3653 100644 --- a/gentoobrowse-api/service/utils/git.cpp +++ b/gentoobrowse-api/service/utils/git.cpp @@ -29,7 +29,7 @@ namespace Gentoo { std::unique_ptr<git_annotated_commit, void (*)(git_annotated_commit*)> gitFetch(git_repository * repo, git_remote * remote, const char * remoteBranchName) { - git_fetch_options opts = GIT_FETCH_OPTIONS_INIT; + auto opts = gitSafeGet(git_fetch_init_options, GIT_FETCH_OPTIONS_VERSION); opts.prune = GIT_FETCH_PRUNE; opts.update_fetchhead = 1; auto localBranch = gitSafeGet(git_repository_head, git_reference_free, repo); |