summaryrefslogtreecommitdiff
path: root/src/clone.c
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2012-10-24 14:07:07 -0700
committerBen Straub <bs@github.com>2012-10-24 14:07:07 -0700
commit1e3b8ed5cfe784f73a123c33c90f573742d8839e (patch)
tree52514d7be3372af3588a5d9f394710782ad687ab /src/clone.c
parent9762ad993dc1afff90a3d14751f1b1f666ad0c95 (diff)
downloadlibgit2-1e3b8ed5cfe784f73a123c33c90f573742d8839e.tar.gz
Remove 'bytes' param from git_remote_download
Diffstat (limited to 'src/clone.c')
-rw-r--r--src/clone.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/clone.c b/src/clone.c
index fc2bfa1fa..ab8b9bcbb 100644
--- a/src/clone.c
+++ b/src/clone.c
@@ -256,13 +256,12 @@ static int setup_remotes_and_fetch(
{
int retcode = GIT_ERROR;
git_remote *origin = NULL;
- git_off_t bytes = 0;
/* Create the "origin" remote */
if (!git_remote_add(&origin, repo, GIT_REMOTE_ORIGIN, origin_url)) {
/* Connect and download everything */
if (!git_remote_connect(origin, GIT_DIR_FETCH)) {
- if (!git_remote_download(origin, &bytes, progress_cb, progress_payload)) {
+ if (!git_remote_download(origin, progress_cb, progress_payload)) {
/* Create "origin/foo" branches for all remote branches */
if (!git_remote_update_tips(origin)) {
/* Point HEAD to the same ref as the remote's head */