Compare commits

..

2 Commits

Author SHA1 Message Date
Jérôme Revillard 45d27e5c06
Merge 31d6c8357f into e36f219c81 2026-05-04 07:52:34 +00:00
Jerome Revillard 31d6c8357f fix: resolve default branch explicitly when updating shallow-cloned custom modules
With shallow clones (--depth 1), `origin/HEAD` becomes stale after the
initial clone. The update path used `git reset --hard origin/HEAD` which
never picked up new commits pushed to the default branch.

Resolve the default branch name via `git symbolic-ref refs/remotes/origin/HEAD`,
then fetch and reset against `origin/<branch>` explicitly. Falls back to
`main` if origin/HEAD is not set.
2026-05-04 09:52:20 +02:00

Diff Content Not Available