Compare commits

..

2 Commits

Author SHA1 Message Date
Jérôme Revillard 0a7b341cee
Merge 4d39db528a into e36f219c81 2026-05-02 09:59:32 +07:00
Jerome Revillard 4d39db528a 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-04-29 16:02:14 +02:00

Diff Content Not Available