summaryrefslogtreecommitdiff
path: root/builtin/push.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-08-13 01:07:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-08-13 01:07:09 (GMT)
commit642f7108f68ef622b338d27d94a956e32c8567dd (patch)
tree32972655c14bdbd803e3842cb2220b9045632199 /builtin/push.c
parent7980e41746bc5de91eea775f9142ce44b1100361 (diff)
parent452c6d506b1a6dcf24d4ceaa592afc39c1c1a60e (diff)
downloadgit-642f7108f68ef622b338d27d94a956e32c8567dd.zip
git-642f7108f68ef622b338d27d94a956e32c8567dd.tar.gz
git-642f7108f68ef622b338d27d94a956e32c8567dd.tar.bz2
Merge branch 'maint'
* maint: push: mention "git pull" in error message for non-fast forwards Standardize do { ... } while (0) style t/t7003: replace \t with literal tab in sed expression index-pack: Don't follow replace refs.
Diffstat (limited to 'builtin/push.c')
-rw-r--r--builtin/push.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/push.c b/builtin/push.c
index a2cc9fd..e655eb7 100644
--- a/builtin/push.c
+++ b/builtin/push.c
@@ -130,8 +130,8 @@ static int push_with_options(struct transport *transport, int flags)
if (nonfastforward && advice_push_nonfastforward) {
fprintf(stderr, "To prevent you from losing history, non-fast-forward updates were rejected\n"
- "Merge the remote changes before pushing again. See the 'Note about\n"
- "fast-forwards' section of 'git push --help' for details.\n");
+ "Merge the remote changes (e.g. 'git pull') before pushing again. See the\n"
+ "'Note about fast-forwards' section of 'git push --help' for details.\n");
}
return 1;