summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-03-05 14:22:15 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2017-03-05 14:22:15 +0000
commitcb125e0251bedf2d49b52d6060edc4b507ed4f13 (patch)
treef3c6e4c0f83fa8a6f482a333b2b1c0bd7b649ac1
parentlibgit2 library helper (diff)
downloadgentoobrowse-api-cb125e0251bedf2d49b52d6060edc4b507ed4f13.tar.bz2
gentoobrowse-api-cb125e0251bedf2d49b52d6060edc4b507ed4f13.tar.xz
gentoobrowse-api-cb125e0251bedf2d49b52d6060edc4b507ed4f13.zip
Remove debug transfer callback
-rw-r--r--gentoobrowse-api/service/utils/git.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/gentoobrowse-api/service/utils/git.cpp b/gentoobrowse-api/service/utils/git.cpp
index 7e1ce71..40241f7 100644
--- a/gentoobrowse-api/service/utils/git.cpp
+++ b/gentoobrowse-api/service/utils/git.cpp
@@ -25,12 +25,6 @@ namespace Gentoo {
git_libgit2_shutdown();
}
- int show(const git_transfer_progress * p, void *)
- {
- fprintf(stderr, "%u / %u\n", p->total_objects, p->received_objects);
- return 0;
- }
-
AdHocFormatter(RefSpec, "refs/heads/%?:refs/remotes/%?/%?");
std::unique_ptr<git_annotated_commit, void (*)(git_annotated_commit*)>
gitFetch(git_repository * repo, git_remote * remote, const char * remoteBranchName)
@@ -38,7 +32,6 @@ namespace Gentoo {
git_fetch_options opts = GIT_FETCH_OPTIONS_INIT;
opts.prune = GIT_FETCH_PRUNE;
opts.update_fetchhead = 1;
- opts.callbacks.transfer_progress = show;
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());