File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -356,12 +356,18 @@ const char *help_unknown_cmd(const char *cmd)
356356 clean_cmdnames (& main_cmds );
357357 fprintf_ln (stderr ,
358358 _ ("WARNING: You called a Git command named '%s', "
359- "which does not exist.\n"
360- "Continuing under the assumption that you meant '%s'" ),
361- cmd , assumed );
362- if (autocorrect > 0 ) {
363- fprintf_ln (stderr , _ ("in %0.1f seconds automatically..." ),
364- (float )autocorrect /10.0 );
359+ "which does not exist." ),
360+ cmd );
361+ if (autocorrect < 0 )
362+ fprintf_ln (stderr ,
363+ _ ("Continuing under the assumption that "
364+ "you meant '%s'." ),
365+ assumed );
366+ else {
367+ fprintf_ln (stderr ,
368+ _ ("Continuing in %0.1f seconds, "
369+ "assuming that you meant '%s'." ),
370+ (float )autocorrect /10.0 , assumed );
365371 sleep_millisec (autocorrect * 100 );
366372 }
367373 return assumed ;
You can’t perform that action at this time.
0 commit comments