summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gentoobrowse-api/service/utils/git.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/gentoobrowse-api/service/utils/git.cpp b/gentoobrowse-api/service/utils/git.cpp
index 40241f7..5eae2a6 100644
--- a/gentoobrowse-api/service/utils/git.cpp
+++ b/gentoobrowse-api/service/utils/git.cpp
@@ -34,17 +34,9 @@ namespace Gentoo {
opts.update_fetchhead = 1;
auto localBranch = gitSafeGet(git_repository_head, git_reference_free, repo);
auto localBranchName = gitSafeGet(git_branch_name, localBranch.get());
- // auto remoteBranch = gitSafeGet(git_branch_upstream, git_reference_free, localBranch.get());
- // auto remoteBranchName = gitSafeGet(git_branch_name, remoteBranch.get());
- // auto remoteBranchName = gitSafeGet(git_remote_default_branch, remote);
- // auto remoteBranchName = "stable";
auto refspec = RefSpec::get(localBranchName, git_remote_name(remote), remoteBranchName);
- // fprintf(stderr, "localBranch %s\n", localBranchName);
- // fprintf(stderr, "remoteBranch %s\n", remoteBranchName.size);
- fprintf(stderr, "refspec %s\n", refspec.c_str());
char * s[] = { &refspec.front() };
git_strarray refs = { s, 1 };
- //(void)refs;
gitSafe(git_remote_fetch, remote, &refs, &opts, nullptr);
return gitSafeGet(git_annotated_commit_from_revspec, git_annotated_commit_free, repo, "FETCH_HEAD");
}