8000 Merge pull request #1715 from EliahKagan/ci-submodules · gitpython-developers/GitPython@5ba2b84 · GitHub
[go: up one dir, main page]

Skip to content
< 65EA header class="HeaderMktg header-logged-out js-details-container js-header Details f4 py-3" role="banner" data-is-top="true" data-color-mode=light data-light-theme=light data-dark-theme=dark>

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5ba2b84

Browse files
authored
Merge pull request #1715 from EliahKagan/ci-submodules
Have init script clone submodules unconditionally
2 parents a5b2fa5 + 8ea3133 commit 5ba2b84

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

.github/workflows/cygwin-test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ jobs:
2626
- uses: actions/checkout@v4
2727
with:
2828
fetch-depth: 0
29-
submodules: recursive
3029

3130
- name: Install Cygwin
3231
uses: cygwin/cygwin-install-action@v4

.github/workflows/pythonpackage.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ jobs:
2727
- uses: actions/checkout@v4
2828
with:
2929
fetch-depth: 0
30-
submodules: recursive
3130

3231
- name: Set up Python ${{ matrix.python-version }}
3332
uses: actions/setup-python@v4

init-tests-after-clone.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,8 @@ git reset --hard HEAD~1
4747
# Point the master branch where we started, so we test the correct code.
4848
git reset --hard __testing_point__
4949

50-
# The tests need submodules. (On CI, they would already have been checked out.)
51-
if ! ci; then
52-
git submodule update --init --recursive
53-
fi
50+
# The tests need submodules, including a submodule with a submodule.
51+
git submodule update --init --recursive
5452

5553
# The tests need some version tags. Try to get them even in forks. This fetches
5654
# other objects too. So, locally, we always do it, for a consistent experience.

0 commit comments

Comments
 (0)
0