Re: [PATCH v2 1/4] submodule: refuse to add repository with no commits

2019-04-04 Thread Junio C Hamano
Kyle Meyer writes: > When the path given to 'git submodule add' is an existing repository > that is not in the index, the repository is passed to 'git add'. If > this repository doesn't have any commits, we don't get a useful > result: there is no subproject OID to track, and any untracked files

[PATCH v2 1/4] submodule: refuse to add repository with no commits

2019-04-02 Thread Kyle Meyer
When the path given to 'git submodule add' is an existing repository that is not in the index, the repository is passed to 'git add'. If this repository doesn't have any commits, we don't get a useful result: there is no subproject OID to track, and any untracked files in the sub-repository are ad