pack-redundant: rename pack_list.all_objects
[gitweb.git] / builtin / push.c
index efb3e38a8d5fe7c3219c2ed7f7ae4502a2c3f1ab..ee1e8420271d93620de98f74a7a515151a69cb23 100644 (file)
@@ -173,10 +173,10 @@ static NORETURN int die_push_simple(struct branch *branch, struct remote *remote
              "\n"
              "To push to the branch of the same name on the remote, use\n"
              "\n"
-             "    git push %s %s\n"
+             "    git push %s HEAD\n"
              "%s"),
            remote->name, short_upstream,
-           remote->name, branch->name, advice_maybe);
+           remote->name, advice_maybe);
 }
 
 static const char message_detached_head_die[] =