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 @@ -355,12 +355,18 @@ const char *help_unknown_cmd(const char *cmd)
355
355
clean_cmdnames (& main_cmds );
356
356
fprintf_ln (stderr ,
357
357
_ ("WARNING: You called a Git command named '%s', "
358
- "which does not exist.\n"
359
- "Continuing under the assumption that you meant '%s'" ),
360
- cmd , assumed );
361
- if (autocorrect > 0 ) {
362
- fprintf_ln (stderr , _ ("in %0.1f seconds automatically..." ),
363
- (float )autocorrect /10.0 );
358
+ "which does not exist." ),
359
+ cmd );
360
+ if (autocorrect < 0 )
361
+ fprintf_ln (stderr ,
362
+ _ ("Continuing under the assumption that "
363
+ "you meant '%s'." ),
364
+ assumed );
365
+ else {
366
+ fprintf_ln (stderr ,
367
+ _ ("Continuing in %0.1f seconds, "
368
+ "assuming that you meant '%s'." ),
369
+ (float )autocorrect /10.0 , assumed );
364
370
sleep_millisec (autocorrect * 100 );
365
371
}
366
372
return assumed ;
You can’t perform that action at this time.
0 commit comments