source-controller/pkg/git
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
..
gogit git/libgit2: set CheckoutForce on branch strategy 2022-02-22 16:31:56 +01:00
libgit2 git/libgit2: assert proper test of default branch 2022-02-22 16:31:56 +01:00
strategy libgit2: Configured libgit2 clone ProxyOptions 2022-01-18 19:35:47 +00:00
git.go pkg/git: Include commit message and URL in error 2022-02-14 21:34:27 +05:30
git_test.go pkg/git: Include commit message and URL in error 2022-02-14 21:34:27 +05:30
options.go Add Host field check in AuthOptions.Validate() 2021-10-27 00:43:31 +05:30
options_test.go Add Host field check in AuthOptions.Validate() 2021-10-27 00:43:31 +05:30