git-submodule - Fix bugs in adding an existing repo as a module