Skip to content

Running dgit with no arguments exits with return code 2 instead of 1 #13

Description

@sirnewton01

I am attempting to run the standard git test suite (https://github.com/git/git/tree/master/t) against dgit to see if it can show us the major gaps in the core functionality. I can provide more details if you are interested in running it yourself.

The standard git command will return 1 if you just run 'git' with no arguments, however dgit returns 2 in this case failing some of the tests. The problem seems to be here

dgit/main.go

Line 43 in 5022e16

os.Exit(2)

When I change that line to return 1 and with some other small work arounds I can run most of the basic git test suite. 32 tests are passing out of 78!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions