- Attempt short-circuiting clone only when the artifact is already in the storage. - A successful no-op clone need not return an error, but a partial commit which contains only a hash + reference. - On no-op clone, reconcileSource() populates the source build dir by copying the existing artifact and lets the reconciliation continue. - Reconciliation is not skipped to allow other subreconcilers to operate on other parts of GitRepo object like include, ignore, etc, when attributes associated with them change but the remote repo has not changed. - Add a function IsConcreteCommit() to differentiate between partial and concrete commit. - Update and simplify go-git and libgit2 no-op clone tests. Signed-off-by: Sunny <darkowlzz@protonmail.com> |
||
---|---|---|
.. | ||
checkout.go | ||
checkout_test.go | ||
gogit.go | ||
transport.go | ||
transport_test.go |