capistrano - replace git submodule protocol from git to http -
capistrano - replace git submodule protocol from git to http -
i add together submodule git@... url, able develop in it. want deploy app , replace url git://... one, doesn't need authentication submodule's repo capistrano. editing url in .gitmodules totally plenty accomplish this?
editing .gitmodules file (then committing, , pushing it) adequate new clones.
additionally, when submodule initialized (e.g. git submodule init …, git submodule update --init …, or git clone --recursive …, etc.) url copied .gitmodules file repository’s .git/config file.
so, if have existing “deployment clones” (the ones want access submodules through git://… urls), have update url in .git/config. can utilize git submodule sync automatically re-create submodule urls current .gitmodules file .git/config file (i.e. 1 time have pulled commit updates .gitmodules file).
the submodule urls in .git/config not automatically updated because there cases want override url in situations. specifically, want utilize git@… urls in repository’s .git/config (so can force on ssh), set git://… urls in .gitmodules (so general public not need ssh-based authentication).
git capistrano
Comments
Post a Comment