Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'ab/push-example-in-doc'
author
Junio C Hamano
<gitster@pobox.com>
Sat, 1 Dec 2018 12:41:44 +0000
(21:41 +0900)
committer
Junio C Hamano
<gitster@pobox.com>
Sat, 1 Dec 2018 12:41:44 +0000
(21:41 +0900)
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
builtin/push.c
patch
|
blob
|
history
raw
(from parent 1:
544d114
)
diff --git
a/builtin/push.c
b/builtin/push.c
index d09a42062c36d930b8147d6b0a4bcfedf34a2321..8bb8a0849ba90aff5d295acc3894b2034cbbdef2 100644
(file)
--- 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[] =