If there is no configuration set for `init.defaultBranch`, it does not return an error but an empty string. We now take this into account so we do not overwrite the default, and make the default `master` to match with libgit2 defaults. In addition, some comments have been added to not get confused about what commits we are checking against. Signed-off-by: Hidde Beydals <hello@hidde.co> |
||
---|---|---|
.. | ||
testdata/git/repo | ||
checkout.go | ||
checkout_test.go | ||
libgit2.go | ||
transport.go | ||
transport_test.go |