Error codes aren't passed from Git subcommand
See original GitHub issue🐛 Bug Report
When meta-git fails it doesn’t seem to pass the error code back.
To Reproduce
Steps to reproduce the behavior:
- Run any invalid Git command
meta git blah blahfor example.
Expected behavior
Should pass the error back, instead it does nothing.
Current behavior:

Expected behavior would be something like:

Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Pass error raised in subcommands to local error handler of its ...
The Problem If several subcommands of a certain group command raises same error, we will have to add local error handler method to...
Read more >git-help Documentation - Git
Prints a list of the Git concept guides on the standard output. --user-interfaces. Prints a list of the repository, command and file interfaces...
Read more >Implementing a new "git ..." subcommand as a Python script
I'm trying to make some minor changes to the git p4 subcommand, which is implemented as a 3797-line Python script named /usr/libexec/git-core/ ...
Read more >picocli - a mighty tiny command line interface
Any command line argument that is not an option or subcommand is interpreted as a positional parameter. Java. Kotlin. String[] args = {...
Read more >One weird trick for powerful Git aliases - Work Life by Atlassian
Will allow you to type git ls to get a bare list of short commit ids and ... $1 to mean the first...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

And thus we arrive at why it’s currently not the default. 😉
Personally, I’m fine leaving things as is and letting people writing scripts add the extra flags when error codes are required.
On Sun, Feb 9, 2020 at 12:29 PM Ameer A. notifications@github.com wrote:
I think it should be the default for all. Let’s get the PR up and play with it, and we can decide whether it will be breaking or not. *It’s probably breaking tho.