Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-12-01 15:41:44 +0300
committerJunio C Hamano <gitster@pobox.com>2018-12-01 15:41:44 +0300
commit2c23f0b67e5ef908ee9ead3154199d4ad5f8b577 (patch)
treeee4cf3d27ab54be538630a5b71c7a1b5c97774cf /builtin
parent544d114eb2ec2fbc7be123ef29492e87c760f4c3 (diff)
parent8247166717fc5a3f26e4db1067891da12644808b (diff)
Merge branch 'ab/push-example-in-doc'
An error message that sugggests how to give correct arguments to "git push" has been updated. * ab/push-example-in-doc: push: change needlessly ambiguous example in error
Diffstat (limited to 'builtin')
-rw-r--r--builtin/push.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/push.c b/builtin/push.c
index d09a42062c..8bb8a0849b 100644
--- a/builtin/push.c
+++ b/builtin/push.c
@@ -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[] =