Re: [git-users] Submodules list from a mirror.

2016-06-22 Thread Konstantin Khomoutov
On Wed, 22 Jun 2016 06:28:34 -0500
Anand Desai  wrote:

> If the superproject knows it's submodules( which it does), is there a
> way to extract that info from a mirror of the super project?

Yes.  Fetch the revision of interest from that "mirror of the super
project" and then either run something like `git submodule status` on
it or parse the file '.gitmodules' contained in that revision which
actually maps submodule names to their repositories.

See the "git-submodule" and "gitmodules" manual pages for more info.

If you don't want to get the full clone, look at the "--depth" and
"--single-branch" command-line options of `git clone` or look at
`git archive` if your mirror supports it.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] Submodules list from a mirror.

2016-06-22 Thread Anand Desai
If the superproject knows it's submodules( which it does), is there a way
to extract that info from a mirror of the super project?
On Jun 22, 2016 02:09, "Philip Oakley" <philipoak...@iee.org> wrote:

> - Original Message -
>
> *From:* Anand Desai <desai.an...@gmail.com>
> *To:* Git for human beings <git-users@googlegroups.com>
> *Sent:* Wednesday, June 22, 2016 2:16 AM
> *Subject:* [git-users] Submodules list from a mirror.
>
> Hello,
>
>
>
> Is there  way to get a list of submodules from a mirror?
> I dont want to clone the mirror, init submodules and then get the list.
>
> On a related topic:
>
>
> git clone --recursive  --mirror
> https://git.openstack.org/openstack/openstack
>
>
> This does not work either.  is there way to accomplish this? ( and then to
> keep submodule mirrors list current? )
>
> Thanks
>
> Remember that submodules are complete projects in their own right. Ther is
> no flag or other markings that will, within a project repo, indicate if it
> is used as a submodule.
>
> The sub-module data is carried with the super-project.
>
> Philip
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Git for human beings" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/git-users/W0RloyfOe2A/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> git-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] Submodules list from a mirror.

2016-06-22 Thread Philip Oakley
- Original Message - 
  From: Anand Desai 
  To: Git for human beings 
  Sent: Wednesday, June 22, 2016 2:16 AM
  Subject: [git-users] Submodules list from a mirror.


  Hello,



  Is there  way to get a list of submodules from a mirror?
  I dont want to clone the mirror, init submodules and then get the list.

  On a related topic:


  git clone --recursive  --mirror https://git.openstack.org/openstack/openstack


  This does not work either.  is there way to accomplish this? ( and then to 
keep submodule mirrors list current? )

  Thanks


Remember that submodules are complete projects in their own right. Ther is no 
flag or other markings that will, within a project repo, indicate if it is used 
as a submodule.

The sub-module data is carried with the super-project.

Philip

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[git-users] Submodules list from a mirror.

2016-06-21 Thread Anand Desai
Hello,



Is there  way to get a list of submodules from a mirror?
I dont want to clone the mirror, init submodules and then get the list.

On a related topic:


git clone --recursive  --mirror 
https://git.openstack.org/openstack/openstack


This does not work either.  is there way to accomplish this? ( and then to 
keep submodule mirrors list current? )

Thanks

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.