summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gentoobrowse-api/service/utils/git.cpp2
-rw-r--r--gentoobrowse-api/service/utils/git.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/gentoobrowse-api/service/utils/git.cpp b/gentoobrowse-api/service/utils/git.cpp
index 5dc1a98..71856d8 100644
--- a/gentoobrowse-api/service/utils/git.cpp
+++ b/gentoobrowse-api/service/utils/git.cpp
@@ -49,7 +49,7 @@ namespace Gentoo {
AdHocFormatter(FastForward, "Performing fast-forward %? -> %?\n");
AdHocFormatter(CheckOut, "Checking out %?\n");
git_oid
- gitFastForward(git_repository * repo, git_annotated_commit * fetch_head)
+ gitFastForward(git_repository * repo, const git_annotated_commit * fetch_head)
{
// Test fast-forward is possible
const git_annotated_commit * heads[] = { fetch_head };
diff --git a/gentoobrowse-api/service/utils/git.h b/gentoobrowse-api/service/utils/git.h
index bdae557..59f06f0 100644
--- a/gentoobrowse-api/service/utils/git.h
+++ b/gentoobrowse-api/service/utils/git.h
@@ -43,7 +43,7 @@ namespace Gentoo {
gitFetch(git_repository * repo, git_remote * remote, const char * branch);
git_oid
- gitFastForward(git_repository * repo, git_annotated_commit * fetch_head);
+ gitFastForward(git_repository * repo, const git_annotated_commit * fetch_head);
void
updateRepository(const std::string & path, const std::string & upstream, const std::string & branch);