Skip to content

Commit c0eb604

Browse files
moygitster
authored andcommitted
push: spell 'Note about fast-forwards' section name correctly in error message.
The error message in case of non-fast forward points to 'git push --help', but used to talk about a section 'non-fast-forward', while the actual section name is 'Note about fast-forwards'. Signed-off-by: Matthieu Moy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 637afcf commit c0eb604

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builtin-push.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ static int push_with_options(struct transport *transport, int flags)
125125

126126
if (nonfastforward && advice_push_nonfastforward) {
127127
printf("To prevent you from losing history, non-fast-forward updates were rejected\n"
128-
"Merge the remote changes before pushing again. See the 'non-fast-forward'\n"
129-
"section of 'git push --help' for details.\n");
128+
"Merge the remote changes before pushing again. See the 'Note about\n"
129+
"fast-forwards' section of 'git push --help' for details.\n");
130130
}
131131

132132
return 1;

0 commit comments

Comments
 (0)