[Xcb] [PATCH xcb-util-*] Use an absolute URL for the m4 submodule

Gaetan Nadon memsize at videotron.ca
Tue Apr 5 05:39:00 PDT 2011


On Tue, 2011-04-05 at 09:58 +0200, Dirk Wallenstein wrote:

> A relative submodule URL requires m4 duplicates relative to every fork or local
> mirror of this module.  To select a different protocol with an absolute
> submodule URL, the url.<base>.insteadOf configuration option can be used.
> 
> Signed-off-by: Dirk Wallenstein <halsmit at t-online.de>
> ---
> I give it at try.  Please consider it.  This applies to all util-* modules.
> 
>  .gitmodules |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/.gitmodules b/.gitmodules
> index 459533d..cff1b86 100644
> --- a/.gitmodules
> +++ b/.gitmodules
> @@ -1,3 +1,3 @@
>  [submodule "m4"]
>  	path = m4
> -	url = ../util-common-m4.git
> +	url = git://anongit.freedesktop.org/xcb/util-common-m4.git


I looked at a few projects on the net at random and they use git
protocol.
It is also given as examples in the git man pages.

It would be helpful for the many who never used submodules to have a
README
indicating how to use a different protocols such as http or ssh. There
were a few posts
on the list by knowledgeable people on the subject.

Reviewed-by: Gaetan Nadon <memsize at videotron.ca>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/xcb/attachments/20110405/9f53fd3a/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/xcb/attachments/20110405/9f53fd3a/attachment.pgp>


More information about the Xcb mailing list