Skip to content

Commit

Permalink
Merge branch 'ab/push-example-in-doc'
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gitster committed Dec 1, 2018
2 parents 544d114 + 8247166 commit 2c23f0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtin/push.c
Original file line number Diff line number Diff line change
Expand Up @@ -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[] =
Expand Down

0 comments on commit 2c23f0b

Please sign in to comment.