Stefan Beller <sbeller@xxxxxxxxxx> writes: >> 1. After cloning >> >> git clone http://localhost:8080/.git >> >> I cannot 'submodule update' the sub1 in the clone since its url after >> 'submodule init' would be http://localhost:8080/.git/sub1 . If I manually fix >> it up -- it seems to proceed normally since in original repository I have >> sub1/.git/ directory and not the "gitlink" for that submodule. > > So the expected URL would be http://localhost:8080/sub1/.git ? > > I thought you could leave out the .git prefix, i.e. you can type > > git clone http://localhost:8080 > > and Git will recognize the missing .git and try that as well. The relative URL > would then be constructed as http://localhost:8080/sub1, which will use the > same mechanism to find the missing .git ending. I may be missing the subtleties, but if you are serving others from a non-bare repository with submodules, I do not think you would want to expose the in-tree version of the submodule in the first place. These $submodule/.git files point via "gitdir:" to their real repository location, don't they? And I would think that they are what you would want to expose to the outside world. Your in-tree submodules may come and go as you checkout different branches in your working tree, but these copies at their real locations will stay. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html