mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Strip slashes from gitfs mountpoints
This fixes an issue where mountpoints containing a trailing slash result in all fileclient requests for files from that repo to fail to match.
This commit is contained in:
parent
7b1d3b5562
commit
4e4a05731e
1 changed files with 1 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue