Skip to content

Commit b4cf8db

Browse files
committed
push: finishing touches to explain REJECT_ALREADY_EXISTS better
Now that "already exists" errors are given only when a push tries to update an existing ref in refs/tags/ hierarchy, we can say "the tag", instead of "the destination reference", and that is far easier to understand. Pointed out by Chris Rorvick. Signed-off-by: Junio C Hamano <[email protected]>
1 parent 75e5c0d commit b4cf8db

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

builtin/push.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,7 @@ static const char message_advice_ref_fetch_first[] =
228228
"See the 'Note about fast-forwards' in 'git push --help' for details.");
229229

230230
static const char message_advice_ref_already_exists[] =
231-
N_("Updates were rejected because the destination reference already exists\n"
232-
"in the remote.");
231+
N_("Updates were rejected because the tag already exists in the remote.");
233232

234233
static const char message_advice_ref_needs_force[] =
235234
N_("You cannot update a remote ref that points at a non-commit object,\n"

0 commit comments

Comments
 (0)