diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-03-05 14:23:11 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-03-05 14:23:11 +0000 |
commit | 1442eb99c35e2735cdb10ec04dcb95065573fff9 (patch) | |
tree | 555d7fb1e719b95f102890436c96f2d4ea84681f | |
parent | Remove debug transfer callback (diff) | |
download | gentoobrowse-api-1442eb99c35e2735cdb10ec04dcb95065573fff9.tar.bz2 gentoobrowse-api-1442eb99c35e2735cdb10ec04dcb95065573fff9.tar.xz gentoobrowse-api-1442eb99c35e2735cdb10ec04dcb95065573fff9.zip |
Remove experimental commented out fetch code
-rw-r--r-- | gentoobrowse-api/service/utils/git.cpp | 8 |
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"); } |