image-automation-controller/controllers
Paulo Gomes a980b894e0
Block the creation of empty commits
In specific cases, the update mechanism may lead to no files being
changed. The changes short-circuit the process to exit early when
0 files have been modified.

go-git has been changed to return an error when an empty commit
is detected, which is used as a last resort.

When the push branch is different than the clone branch, the controller
will now download all branch references from the Git server, in order
to enable a single fetch operation.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-12-20 10:11:22 +00:00
..
testdata Update kyaml to v0.13.0 2022-01-26 15:56:25 +01:00
controllers_fuzzer_test.go Block the creation of empty commits 2022-12-20 10:11:22 +00:00
imageupdateautomation_controller.go Block the creation of empty commits 2022-12-20 10:11:22 +00:00
imageupdateautomation_controller_test.go build: Improve fuzz tests' reliability 2022-11-23 15:48:14 +00:00
suite_test.go features: Remove ForceGoGitImplementation 2022-12-09 13:43:24 +00:00
update_test.go libgit2: Migrate tests to go-git 2022-12-09 11:27:51 +00:00