[Spice-devel] [PATCH spice-gtk] RFC: Use spice protocol as a submodule
Gerd Hoffmann
kraxel at redhat.com
Tue Feb 21 05:03:25 PST 2012
> diff --git a/.gitmodules b/.gitmodules
> new file mode 100644
> index 0000000..b628a96
> --- /dev/null
> +++ b/.gitmodules
> @@ -0,0 +1,3 @@
> +[submodule "spice-protocol"]
> + path = spice-protocol
> + url = git://anongit.freedesktop.org/spice/spice-protocol
IIRC relative paths work there too and 'git submodule init' picks up the
path from the parent then. So committers automagically get a
"ssh://..." url for the submodule too. Also when fetching from a local
mirror git will try to get the submodule from the mirror as well.
cheers,
Gerd
More information about the Spice-devel
mailing list