From 1cdf0897f31029e75743abd55d5f4cf5a58a1545 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 5 Mar 2017 14:23:11 +0000 Subject: Remove experimental commented out fetch code --- gentoobrowse-api/service/utils/git.cpp | 8 -------- 1 file changed, 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"); } -- cgit v1.2.3