summaryrefslogtreecommitdiffstats
path: root/layman/overlays/git.py
diff options
context:
space:
mode:
Diffstat (limited to 'layman/overlays/git.py')
-rw-r--r--layman/overlays/git.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/layman/overlays/git.py b/layman/overlays/git.py
index 007e841..3a149b5 100644
--- a/layman/overlays/git.py
+++ b/layman/overlays/git.py
@@ -45,8 +45,12 @@ class GitOverlay(Overlay):
self.supported()
- return self.cmd(self.binary_command + ' clone "' + self.src + '/" "'
- + path([base, self.name]) + '"')
+ # http:// should get trailing slash, other protocols shouldn't
+ slash = ''
+ if self.src.split(':')[0] == 'http':
+ slash = '/'
+ return self.cmd(self.binary_command + ' clone "' + self.src + slash
+ + '" "' + path([base, self.name]) + '"')
def sync(self, base):
'''Sync overlay.'''