From: Sam McLeod Date: Thu, 10 Jul 2014 05:33:47 GMT Subject: Align git push stderr output to the same as git pull Message-ID: As per: https://github.com/git/git/pull/100 'For already up-to-date repos return "Already up-to-date" which is the same message git pull returns.' Developer's Certificate of Origin 1.1 By making a contribution to this project, I certify that: (a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or (b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or (c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it. (d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved. Signed-off-by: Sam McLeod diff --git a/builtin/send-pack.c b/builtin/send-pack.c index f420b74..6fb2642 100644 --- a/builtin/send-pack.c +++ b/builtin/send-pack.c @@ -274,7 +274,7 @@ int cmd_send_pack(int argc, const char **argv, const char *prefix) } if (!ret && !transport_refs_pushed(remote_refs)) - fprintf(stderr, "Everything up-to-date\n"); + fprintf(stderr, "Already up-to-date\n"); return ret; } diff --git a/transport.c b/transport.c index 59c9727..4dd9f74 100644 --- a/transport.c +++ b/transport.c @@ -1220,7 +1220,7 @@ int transport_push(struct transport *transport, if (porcelain && !push_ret) puts("Done"); else if (!quiet && !ret && !transport_refs_pushed(remote_refs)) - fprintf(stderr, "Everything up-to-date\n"); + fprintf(stderr, "Already up-to-date\n"); return ret; }