]> asedeno.scripts.mit.edu Git - git.git/blobdiff - send-pack.c
Merge branch 'db/fetch-pack'
[git.git] / send-pack.c
index 16ed51f6a012899e6e59eac6f4b657aa24f1c8df..e9b9a39f411b6cfff1c0a4bc3f7e31274c8d2782 100644 (file)
@@ -205,7 +205,8 @@ static int send_pack(int in, int out, struct remote *remote, int nr_refspec, cha
                return -1;
 
        if (!remote_refs) {
-               fprintf(stderr, "No refs in common and none specified; doing nothing.\n");
+               fprintf(stderr, "No refs in common and none specified; doing nothing.\n"
+                       "Perhaps you should specify a branch such as 'master'.\n");
                return 0;
        }
 
@@ -427,7 +428,7 @@ int main(int argc, char **argv)
 
        if (remote_name) {
                remote = remote_get(remote_name);
-               if (!remote_has_uri(remote, dest)) {
+               if (!remote_has_url(remote, dest)) {
                        die("Destination %s is not a uri for %s",
                            dest, remote_name);
                }