Re: [PATCH] fix "git-submodule add a/b/c/repository" | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
> > +test_expect_success 'adding an already-existing repository deep in the directory hierarchy' '
> > +
> > + mkdir dir0 &&
> > + mkdir dir0/dir1 &&
> > + git clone init dir0/dir1/init &&
> > + git-submodule add dir0/dir1/init &&
> > + git-submodule status | grep "dir0/dir1/init"
> > +'
>
> I am not sure if this is fixing a sane use case. "submodule add" is
> documented to take:
>
> 'git submodule' [--quiet] add [-b branch] [--] <repository> [<path>]
>
> and you are adding at dir0/dir1/init a submodule that will interact with "init"
> repository, so shouldn't that command line be something like:
>
> git submodule add init dir0/dir1/init
git submodule add dir0/dir1/init
Is supposed to add the repository already checked-out in dir0/dir1/init as a
submodule, at the same location.
git submodule add init dir0/dir1/init
Would clone dir0/dir1/init at ./init and add ./init as a submodule. This is
actually what the current git-submodule (wrongly) does.
Sylvain
--
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
[Newbies FAQ] [Kernel List] [Site Home] [Free Online Dating] [Gcc Help] [IETF Annouce] [DCCP] [Netdev] [Networking] [Security] [V4L] [Bugtraq] [Free Online Dating] [Rubini] [Photo] [Yosemite] [MIPS Linux] [ARM Linux] [Linux Security] [Linux RAID] [Linux SCSI] [DDR & Rambus] [Linux Resources]