- I have root Mercurial repo (web site).
- I clone WordPress from GitHub mirror into
/wp
subdirectory. - Since I want very specific (stable) version of WP, but no ongoing development I do
git checkout 3.4.1
(where3.4.1
is tag). - I setup it as subrepo in root Mercurial repo and commit (WP revision gets captured fine in
.hgsubstate
).
And here trouble starts. I do hg push
and when it gets to WP:
no branch checked out in subrepo wp
cannot push revision e9bc63e25dc40c07ac3a6778dc2b48e1aa486e36
And then it just quits. Push for root repo is not even attempted.
I understand why Mercurial tries to push subrepo (intended behavior), but I can't make sense why it manages to fail completely on subrepo that:
- has no changes
- has read-only origin anyway
How to make it understand that I want this specific revision and I don't want it messing with Git subrepo?