forked from jenkinsci/git-client-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow automated tests from shallow clones
Do not attempt to use the local repository as a reference repository when the local repository is a shallow clone. A shallow clone repository has no content to offer as a reference. Fixes 64 test failures when the test repository is a shallow clone. jenkinsci/bom#1613 describes the experiment to run the plugin compatibility tests with shallow clones. jenkinsci/git-plugin#1365 implemented a similar change in the git plugin so that shallow cloned repositories will not fail the tests in that plugin. Will make a few tests in a shallow repository a little slower because they will require a full clone of the git client plugin repository rather than reusing the existing clone in the test workspace. Doubtful that the performance difference will be detectable within the general variability of CI test jobs.
- Loading branch information
1 parent
788eeda
commit 325ef0a
Showing
2 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters