Add test to check recent fix to "git add -u"
[git] / send-pack.c
index fecbda9..9fc8a81 100644 (file)
@@ -305,8 +305,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) {