You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Help messages not shown correctly when post command hook is present #859
Run an misspelled command. For example, git statuss
Expected output:
WARNING: You called a Git command named 'statuss', which does not exist.
Run 'status' instead [y/N]?
Actual output:
failed to run command 'statuss': No error
I think the problem is that run_post_command_hook needs to save and restore errno, similar to how handle_alias does it. Otherwise, the errno from the failed command is overwritten by the successful errno from postcommand hook before the help autocorrect has a chance to examine it.
Activity
Restore previous errno after post command hook (#860)
Restore previous errno after post command hook (#860)
Restore previous errno after post command hook (#860)
Restore previous errno after post command hook (#860)
Restore previous errno after post command hook (#860)
Restore previous errno after post command hook (#860)
Restore previous errno after post command hook (#860)
Restore previous errno after post command hook (#860)
Restore previous errno after post command hook (#860)
Restore previous errno after post command hook (#860)
Restore previous errno after post command hook (#860)
Restore previous errno after post command hook (#860)