Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
option for submodule updating #43
My repository can require special processing on the submodules before
This shouldn't be used in normal circumstances, so I would consider
My repository can require special processing on the submodules before they are updated. This is because Gerrit is used, so the submodules may not always point to refs/heads/, which is the only place git looks at by default. This should really be fixed in git, but as a workaround we have created a script that checks ls-remotes and updates to the appropriate location. This shouldn't be used in normal circumstances, so I would consider this somewhat of a hack; however, the option itself doesn't require any obtrusive code in the git plugin.
I have submitted my pull request #48 before I discovered this one which does almost the same thing, although I think mine is better because it is more explicit. You not only don't update submodules, but as far as I understand don't do init either.
So anyway, this kind of makes the point that this functionality is necessary and important, but which request to adopt is to the discretion of the developers. It doesn't matter to me so much as long as it works.