self.supported()
return self.cmd(self.binary_command + ' clone "' + self.src + '/" "'
# http:// should get trailing slash, other protocols shouldn't
+ path([base, self.name]) + '"')
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.'''