You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.
a branch called "master", that contains a submodule to another project
a branch called "develop", that does not contain a submodule reference
If I configure a Hudson job to build/test the "develop" branch, the build breaks, because it cannot do the submodule checkout. Because this happens before switching to the "develop" branch, the build is broken before anything started.
Solution
I assume the output of git ls-tree HEAD is scanned for 160000 references to determine which entries are submodules. The ref HEAD at that point still points to master, I suppose in most cases. Instead of ls-tree'ing HEAD, maybe do it on the specified branch?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The problem
I have the following setup:
If I configure a Hudson job to build/test the "develop" branch, the build breaks, because it cannot do the submodule checkout. Because this happens before switching to the "develop" branch, the build is broken before anything started.
Solution
I assume the output of
git ls-tree HEAD
is scanned for 160000 references to determine which entries are submodules. The ref HEAD at that point still points tomaster
, I suppose in most cases. Instead ofls-tree
'ing HEAD, maybe do it on the specified branch?The text was updated successfully, but these errors were encountered: