Re: [PATCH] fix "git-submodule add a/b/c/repository"
- From
Mark Levedahl <mlevedahl@gmail.com>
- Date
- Jul 8, 2008, 02:23 UTC
- Message-ID
- <4872CF86.5050702@gmail.com>
- In-Reply-To
- <20080707063424.GB5506@jhaampe.org>
Sylvain Joyeux wrote:
Show 9 quoted lines
> > Redo the prep work, the clone and now > > git submodule add dir0/dir1/init > > (i.e. don't expect dir0/dir1/init to be the clone of ./init, that was just a > shortcut for the test. Expect it to be a clone of "something, somewhere") > >
Per the man-page,
git submodule [--quiet] add [-b branch] [--] <repository> [<path>]which means, that the *repository* url is mandatory, the path is optional. What you specifically asked git-submodule to do was to *clone* from dir0/dir1/init, and because you gave no path to put the submodule in, git-submodule deduced the name as "init", and cloned to there.
Mark