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.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/layman/overlays/git.py b/layman/overlays/git.py
index e15f26d..81e650c 100644
--- a/layman/overlays/git.py
+++ b/layman/overlays/git.py
@@ -53,7 +53,10 @@ class GitOverlay(OverlaySource):
def fix_git_source(source):
# http:// should get trailing slash, other protocols shouldn't
if source.split(':')[0] == 'http':
- return source + '/'
+ if source.endswith('/'):
+ return source
+ else:
+ return source + '/'
return source
cfg_opts = self.config["git_addopts"]