]> asedeno.scripts.mit.edu Git - git.git/blobdiff - builtin-push.c
fetch/push: readd rsync support
[git.git] / builtin-push.c
index f496b460073827cc14ce2e224bc9756735b0141f..4ee36c292d9d42f658673c5d37d80077d65dc855 100644 (file)
@@ -57,9 +57,9 @@ static int do_push(const char *repo, int flags)
                refspec_nr = remote->push_refspec_nr;
        }
        errs = 0;
-       for (i = 0; i < remote->uri_nr; i++) {
+       for (i = 0; i < remote->url_nr; i++) {
                struct transport *transport =
-                       transport_get(remote, remote->uri[i], 0);
+                       transport_get(remote, remote->url[i]);
                int err;
                if (receivepack)
                        transport_set_option(transport,
@@ -68,14 +68,14 @@ static int do_push(const char *repo, int flags)
                        transport_set_option(transport, TRANS_OPT_THIN, "yes");
 
                if (verbose)
-                       fprintf(stderr, "Pushing to %s\n", remote->uri[i]);
+                       fprintf(stderr, "Pushing to %s\n", remote->url[i]);
                err = transport_push(transport, refspec_nr, refspec, flags);
                err |= transport_disconnect(transport);
 
                if (!err)
                        continue;
 
-               error("failed to push to '%s'", remote->uri[i]);
+               error("failed to push to '%s'", remote->url[i]);
                errs++;
        }
        return !!errs;