Loading tests/unit/gitlab_ci/pre_commit_run/tests.py +1 −0 Original line number Diff line number Diff line Loading @@ -86,6 +86,7 @@ class PreCommitRunTests(unittest.TestCase): Execute the test runner script, return the pre-commit arguments and the environment """ self.test_repo.command("fetch", self.repo.url, "-q", "--depth=2", f"{ref}:{ref}") self.test_repo.command("symbolic-ref", "HEAD", f"refs/heads/{ref}") env.update( CI_REPOSITORY_URL=self.repo.url, CI_DEFAULT_BRANCH=MAIN, Loading Loading
tests/unit/gitlab_ci/pre_commit_run/tests.py +1 −0 Original line number Diff line number Diff line Loading @@ -86,6 +86,7 @@ class PreCommitRunTests(unittest.TestCase): Execute the test runner script, return the pre-commit arguments and the environment """ self.test_repo.command("fetch", self.repo.url, "-q", "--depth=2", f"{ref}:{ref}") self.test_repo.command("symbolic-ref", "HEAD", f"refs/heads/{ref}") env.update( CI_REPOSITORY_URL=self.repo.url, CI_DEFAULT_BRANCH=MAIN, Loading