We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d529b7 commit ec2e2c8Copy full SHA for ec2e2c8
git/objects/submodule/base.py
@@ -11,6 +11,7 @@
11
import stat
12
import sys
13
import uuid
14
+import urllib
15
16
import git
17
from git.cmd import Git
@@ -799,9 +800,13 @@ def update(
799
800
+ "Cloning url '%s' to '%s' in submodule %r" % (self.url, checkout_module_abspath, self.name),
801
)
802
if not dry_run:
803
+ if self.url.startswith("."):
804
+ url = urllib.parse.urljoin(self.repo.remotes.origin.url + "/", self.url)
805
+ else:
806
+ url = self.url
807
mrepo = self._clone_repo(
808
self.repo,
- self.url,
809
+ url,
810
self.path,
811
self.name,
812
n=True,
0 commit comments