Miscellaneous push / pull urls for git submodule

I am using a git sample super project in a large project that is being deployed by the Teamcity build agent, which does not have a repository account, but the repository is for anonymous cloning. For this reason, I created submodules with their URL http://, and not with their git url. The problem is that the repository rejects the HTTP push:

Total 0 (delta 0), reused 0 (delta 0)
error: RPC failed; result=22, HTTP code = 401
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly

Therefore, every time I update submodules when switching branches, I have to do git remote add-url --pushto add a URL git://.

Is there a way to configure submodules in a super project so that they already use the http://pull URL and git://click URL ?

+5
source share
1

LibreOffice :

, " HEAD", , - , () - .

pushurl , , .

$ editor .git/modules/submodule/config

[remote "origin"] :

pushurl = ssh://logerrit/submodule

( soulseekah comment) ( git:// )

( )

git config remote.origin.pushurl git://...

, , :

fatal: The remote end hung up unexpectedly
+5

All Articles