FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Pull: stop double-fetching submodules by jamiew · Pull Request #135 · git-friendly/git-friendly · GitHub

Pull: stop double-fetching submodules - #135

Merged
jamiew merged 1 commit into
mainfrom
fix-double-submodule-fetch-on-pull
May 29, 2026
Merged

Pull: stop double-fetching submodules#135
jamiew merged 1 commit into
mainfrom
fix-double-submodule-fetch-on-pull

Conversation

jamiew commented May 29, 2026

Copy link
Copy Markdown
Collaborator

the explicit git fetch we added in #133 (to keep all branch refs fresh) recurses into submodules, and so does the git pull --recurse-submodules right after it — so on a repo with submodules every submodule gets fetched twice on every pull. this passes --no-recurse-submodules to that first fetch so submodules are only fetched once.

  • branch-refresh fetch no longer recurses into submodules
  • the recursive pull below still owns submodule updates, so nothing changes functionally

to test:

  • in a repo with submodules (e.g. a site with several), run pull
  • submodules should no longer appear under 🚀 Fetching from origin... — fetched at most once
  • git submodule status confirms they land at the right commits

- the explicit `git fetch` added in #133 recursed into submodules, and so does the `git pull --recurse-submodules` right after, so every submodule got fetched twice
- pass `--no-recurse-submodules` to the branch-refresh fetch; the recursive pull still owns submodule updates
jamiew merged commit ae97f45 into main May 29, 2026
1 check passed
jamiew deleted the fix-double-submodule-fetch-on-pull branch May 29, 2026 01:53
This file contains hidden or 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL