[Spice-devel] [PATCH] spice-common submodule: update url (add .git at the end)

Uri Lublin uril at redhat.com
Wed Jun 20 09:28:58 UTC 2018


With the move to gitlab.freedesktop.org the spice-common submodule
url changed, and now ends with .git

Update .gitmodules to reflect that.

Without this patch git submodule update (and ./autogen.sh)
fails on RHEL-7 (git version 1.8.3).
On Fedora 28 (git version 2.17.1) it succeeds as it's successfully
redirecting to spice-common.git url.

With git version 1.8.3:
$ git submodule update
Cloning into 'spice-common'...
error: RPC failed; result=22, HTTP code = 404
fatal: The remote end hung up unexpectedly
Clone of 'https://gitlab.freedesktop.org/spice/spice-common' into submodule path 'spice-common' failed

Signed-off-by: Uri Lublin <uril at redhat.com>
---

If you are testing from an existing directory you can

  $ git config submodule.spice-common.url  # show old url
  $ git submodule deinit .
  $ git submodule init
  $ git config submodule.spice-common.url  # show new url
  $ git submodule update

---
 .gitmodules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.gitmodules b/.gitmodules
index 0c618ee13..ef8d8f9a5 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,3 +1,3 @@
 [submodule "spice-common"]
 	path = spice-common
-	url = ../spice-common
+	url = ../spice-common.git
-- 
2.17.1



More information about the Spice-devel mailing list