Strip git remote uri before processing
Part of bug 1240852 Change-Id: I6cbe0e708e77b82214a5c85b8adac96106d4ec96
This commit is contained in:
@@ -105,8 +105,10 @@ class Git(Vcs):
|
||||
|
||||
if os.path.exists(self.folder):
|
||||
os.chdir(self.folder)
|
||||
uri = str(sh.git('config', '--get', 'remote.origin.url'))
|
||||
uri = str(sh.git('config', '--get', 'remote.origin.url')).strip()
|
||||
if uri != self.repo['uri']:
|
||||
LOG.debug('Repo uri %(uri)s differs from cloned %(old)s',
|
||||
{'uri': self.repo['uri'], 'old': uri})
|
||||
os.chdir('..')
|
||||
shutil.rmtree(self.folder)
|
||||
|
||||
|
Reference in New Issue
Block a user