I have a submodule that is using the wrong remote and the wrong branch. I have edited the .gitmodules file in the parent git repository so have the correct url (remote) and branch. However when I use any variation of git submodule init, git submodule update, git reset --hard origin/branch, etc. from within or outside of the submodule, at worst I get an error and at best I get a confirmation that the command succeeded with no actual change to the code in the submodule's directory.
Assuming my .gitmodules is configured correctly, how do I correctly update the submodule directory so that it shows code from the correct remote/branch combination?
Update: It appears that the "branch" attribute of the submodule configuration is ignored when performing an update.
 
     
    