Paulo Gomes
c84179088c
Fixes regression accessing GitLab public repositories
...
Some git servers are more accommodating than others. Gitlab will try to
validate credentials when they are provided, even if they are empty and
the target repository is public, leading to a failed authentication error.
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-03-30 10:50:40 +02:00
Sunny
a7f2e870bf
transportAuth(): Add checks for invalid transports
...
Update GitRepositoryReconciler to use a nil authOpts unless it's
configured.
Signed-off-by: Sunny <darkowlzz@protonmail.com>
2021-10-27 16:59:26 +05:30
Hidde Beydals
80b9807550
gogit: add CheckoutStrategy tests
...
Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-10-27 00:43:31 +05:30
Hidde Beydals
0cf0d4e756
git: refactor AuthStrategy into AuthOptions
...
This commit moves the previous `AuthStrategy` wiring to a more generic
`AuthOptions`, breaking free from implementation specific details in
the `git` package.
Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-10-27 00:43:31 +05:30
Stefan Prodan
79b180376d
Update go-git to v5.4.1
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-05-26 14:06:41 +03:00
Somtochi Onyekwere
ee43942afb
Test for Method fails with some private keys
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2021-04-19 15:58:18 +01:00
Somtochi Onyekwere
d3d1917e5e
Add tests for libgit2
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2021-04-12 16:31:42 +01:00
Somtochi Onyekwere
e82c8e8b70
Use password in git method for secret
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2021-04-12 15:52:51 +01:00
Stefan Prodan
f0016cfad1
Enable self-signed certs for go-git
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-03-29 13:23:32 +03:00
Hidde Beydals
fac1afa2a8
Move `git/common` to `git`
...
Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-02-08 14:05:05 +01:00
Hidde Beydals
7e63ef841c
Rename Git packages to implementations
...
Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-02-08 13:55:23 +01:00