Merge pull request #37408 from terminalmage/issue37286

Strip slashes from gitfs mountpoints
This commit is contained in:
Mike Place 2016-11-04 17:51:27 +13:00 committed by GitHub
commit 35888c2e30

View file

@ -243,6 +243,7 @@ class GitProvider(object):
if hasattr(self, 'mountpoint'):
self.mountpoint = salt.utils.url.strip_proto(self.mountpoint)
self.mountpoint = self.mountpoint.strip('/')
else:
# For providers which do not use a mountpoint, assume the
# filesystem is mounted at the root of the fileserver.