unpack-trees.c: assume submodules are clean during check-out
[gitweb.git] / send-pack.c
index fecbda981b7c6c2504abdd7afb94e35e73e18cce..9fc8a812f4c526d61e3acb8183b8b8da0e36895c 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) {