Plugins/VcsPlugins/vcsGit/git.py

changeset 6707
30f0ac20df50
parent 6645
ad476851d7e0
child 6891
93f82da09f22
equal deleted inserted replaced
6703:31b0306f0ecc 6707:30f0ac20df50
1343 """ 1343 """
1344 url = url.replace('\\', '/') 1344 url = url.replace('\\', '/')
1345 if url.endswith('/'): 1345 if url.endswith('/'):
1346 url = url[:-1] 1346 url = url[:-1]
1347 urll = url.split('//') 1347 urll = url.split('//')
1348 return "{0}//{1}".format(urll[0], '/'.join(urll[1:])) 1348 if len(urll) > 1:
1349 url = "{0}//{1}".format(urll[0], '/'.join(urll[1:]))
1350
1351 return url
1349 1352
1350 def gitCreateIgnoreFile(self, name, autoAdd=False): 1353 def gitCreateIgnoreFile(self, name, autoAdd=False):
1351 """ 1354 """
1352 Public method to create the ignore file. 1355 Public method to create the ignore file.
1353 1356

eric ide

mercurial