diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-03-05 14:22:15 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-03-05 14:22:15 +0000 |
commit | b86ca1401afcfa9d12542203a4d7f4a5e577edec (patch) | |
tree | f3c6e4c0f83fa8a6f482a333b2b1c0bd7b649ac1 | |
parent | libgit2 library helper (diff) | |
download | gentoobrowse-api-b86ca1401afcfa9d12542203a4d7f4a5e577edec.tar.bz2 gentoobrowse-api-b86ca1401afcfa9d12542203a4d7f4a5e577edec.tar.xz gentoobrowse-api-b86ca1401afcfa9d12542203a4d7f4a5e577edec.zip |
Remove debug transfer callback
-rw-r--r-- | gentoobrowse-api/service/utils/git.cpp | 7 |
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()); |