Skip to content
Draft
Changes from 2 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
4987c26
Fix Git bundle submodule fetch not using SSH settings from connection
shunsuke-sugita Apr 8, 2026
46f66a4
Merge branch 'main' into provider-git-fix-fetch-submodul
shunsuke-sugita Apr 9, 2026
fd68b54
Rename cm to ssh_env_cm in _fetch_bare_repo and _fetch_submodules.
shunsuke-sugita Apr 12, 2026
7e67b4c
Test GitDagBundle._fetch_submodules applies GIT_SSH_COMMAND via custo…
shunsuke-sugita Apr 12, 2026
ffb5e5a
Merge branch 'main' into provider-git-fix-fetch-submodul
shunsuke-sugita Apr 12, 2026
799e084
Merge branch 'main' into provider-git-fix-fetch-submodul
shunsuke-sugita Apr 15, 2026
21098f9
Merge branch 'main' into provider-git-fix-fetch-submodul
shunsuke-sugita Apr 17, 2026
6346cb2
Use autospec for Git/Repo mocks in submodule fetch unit tests
shunsuke-sugita Apr 17, 2026
2dcfd1d
Drop redundant mock_calls assertions in submodule fetch test
shunsuke-sugita Apr 20, 2026
fe31907
GitDagBundle: submodule custom_environment uses full hook.env
shunsuke-sugita Apr 20, 2026
62d9068
Merge branch 'main' into provider-git-fix-fetch-submodul
shunsuke-sugita Apr 20, 2026
6d27243
Rename submodule test for empty hook.env (custom_environment skip)
shunsuke-sugita Apr 20, 2026
4f0d7fc
Update providers/git/tests/unit/git/bundles/test_git.py
shunsuke-sugita Apr 20, 2026
9b6ca63
rm airflow
shunsuke-sugita Apr 20, 2026
76fd8ca
Add missing blank line between submodule fetch tests
shunsuke-sugita Apr 20, 2026
51f14ca
Fix submodule test call-order assertion (use mock_git.mock_calls, not…
shunsuke-sugita Apr 20, 2026
fa3f022
fix test
shunsuke-sugita Apr 22, 2026
3ccbaf5
Merge branch 'main' into provider-git-fix-fetch-submodul
shunsuke-sugita Apr 22, 2026
b8084ed
Fix git bundle and Celery executor unit tests failing in provider CI
shunsuke-sugita Apr 22, 2026
33def75
Fix git bundle and Celery executor unit tests for provider CI
shunsuke-sugita Apr 22, 2026
ce418f4
Merge branch 'main' into provider-git-fix-fetch-submodul
shunsuke-sugita Apr 22, 2026
76cfd3a
Revert celery executor test changes (keep Git bundle PR scoped)
shunsuke-sugita Apr 22, 2026
996de12
Merge branch 'main' into provider-git-fix-fetch-submodul
shunsuke-sugita Apr 22, 2026
cb599d8
Merge branch 'main' into provider-git-fix-fetch-submodul
shunsuke-sugita May 7, 2026
6b1cc87
undo test_celery_executor fix
shunsuke-sugita May 7, 2026
0b0c77a
Merge branch 'main' into provider-git-fix-fetch-submodul
shunsuke-sugita May 11, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions providers/git/src/airflow/providers/git/bundles/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,13 @@ def _fetch_bare_repo(self):
reraise=True,
)
def _fetch_submodules(self) -> None:
self._log.info("Initializing and updating submodules", repo_path=self.repo_path)
self.repo.git.submodule("sync", "--recursive")
self.repo.git.submodule("update", "--init", "--recursive", "--jobs", "1")
cm = nullcontext()
Comment thread
shunsuke-sugita marked this conversation as resolved.
Outdated
if self.hook and (cmd := self.hook.env.get("GIT_SSH_COMMAND")):
cm = self.repo.git.custom_environment(GIT_SSH_COMMAND=cmd)
with cm:
Comment thread
shunsuke-sugita marked this conversation as resolved.
Outdated
self._log.info("Initializing and updating submodules", repo_path=self.repo_path)
self.repo.git.submodule("sync", "--recursive")
self.repo.git.submodule("update", "--init", "--recursive", "--jobs", "1")
Comment thread
shunsuke-sugita marked this conversation as resolved.
Outdated

def refresh(self) -> None:
if self.version:
Expand Down
Loading