<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.26.0">
</HEAD>
<BODY>
On Thu, 2011-03-24 at 00:52 +0100, Arnaud Fontaine wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Hi,

    &gt; Hi, I mean this in .gitmodules:
    &gt;     [submodule &quot;m4&quot;]
    &gt;         path = m4
    &gt;         url = ../util-common-m4.git

    &gt; instead of:
    &gt;     [submodule &quot;m4&quot;] 
    &gt;         path = m4
    &gt;         url = git://anongit.freedesktop.org/xcb/util-common-m4 

Yes, it  is relative  on purpose.  There  are several reasons  for this,
such as  being easier  for developers  (you may want  to write  code for
util-common-m4 and test it in util-wm
</PRE>
</BLOCKQUOTE>
A relative url neither helps nor hinder.
<BLOCKQUOTE TYPE=CITE>
<PRE>
 or publish your own util-common-m4
somewhere along with util,
</PRE>
</BLOCKQUOTE>
No url will be able to point at 2 different repos with the same name.
<BLOCKQUOTE TYPE=CITE>
<PRE>
 without modifying .gitsubmodules) and you may
not want to use git protocol.
</PRE>
</BLOCKQUOTE>
Why would you not want to use a git url? This is what all modules use.
<BLOCKQUOTE TYPE=CITE>
<PRE>

Also, as Gaetan pointed out, if a developer wants to make a copy of util
repository on  people.fdo, then he  will have to copy  util-common-m4 as
well but I don't really think that's really an issue.
</PRE>
</BLOCKQUOTE>
Not a big issue, it's done rarely. <BR>
<BR>
I don't see any benefits in using a relative url and a minor issue when cloning a containing<BR>
repo using the submodule. <BR>
<BR>
Was the relative url typed in or create by the &quot;git submodule add&quot; command?<BR>
It just doesn't &quot;feel&quot; right. I can't find anything really bad about it yet,<BR>
but I surprised you found &quot;several reasons&quot; for choosing it.<BR>
<BR>
<BR>
<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>

Cheers,
--
Arnaud Fontaine
_______________________________________________
Xcb mailing list
<A HREF="mailto:Xcb@lists.freedesktop.org">Xcb@lists.freedesktop.org</A>
<A HREF="http://lists.freedesktop.org/mailman/listinfo/xcb">http://lists.freedesktop.org/mailman/listinfo/xcb</A>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>