source-controller/pkg/git/libgit2
Hidde Beydals eff40e22e9 git/libgit2: assert proper test of default branch
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>
2022-02-22 16:31:56 +01:00
..
testdata/git/repo Add libgit2 checkout test with ED25519 key 2022-02-16 10:17:32 +00:00
checkout.go git/libgit2: set CheckoutForce on branch strategy 2022-02-22 16:31:56 +01:00
checkout_test.go git/libgit2: assert proper test of default branch 2022-02-22 16:31:56 +01:00
libgit2.go gogit: allow checkout of commit without branch 2021-10-27 00:43:31 +05:30
transport.go Upgrade libgit2 to libgit2-1.3.0-2 2022-02-16 11:39:11 +00:00
transport_test.go Upgrade libgit2 to libgit2-1.3.0-2 2022-02-16 11:39:11 +00:00