]> asedeno.scripts.mit.edu Git - git.git/blobdiff - send-pack.c
Document additional 1.5.3.5 fixes in release notes
[git.git] / send-pack.c
index 2c0b19ba34d8103c0db09ed8fa2f556636c7fcaa..fd985ed28d7f9ea1f8ba3d83313e2bce8d614d98 100644 (file)
@@ -204,7 +204,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;
        }
 
@@ -305,8 +306,8 @@ static int send_pack(int in, int out, struct remote *remote, int nr_refspec, cha
                if (remote) {
                        struct refspec rs;
                        rs.src = ref->name;
-                       remote_find_tracking(remote, &rs);
-                       if (rs.dst) {
+                       rs.dst = NULL;
+                       if (!remote_find_tracking(remote, &rs)) {
                                struct ref_lock *lock;
                                fprintf(stderr, " Also local %s\n", rs.dst);
                                if (will_delete_ref) {
@@ -354,6 +355,7 @@ static void verify_remote_names(int nr_heads, char **heads)
                case -2: /* ok but a single level -- that is fine for
                          * a match pattern.
                          */
+               case -3: /* ok but ends with a pattern-match character */
                        continue;
                }
                die("remote part of refspec is not a valid name in %s",