Skip to content

Commit

Permalink
Ignore repo changes for Git sourcedataMatches()
Browse files Browse the repository at this point in the history
Git is more than willing to fetch branches from completely unrelated
repositories into the same local repository (it'll give a warning about
'no related commits', but that's not a problem). There's no reason to
throw away the current repository and re-clone just because the repo
changed (and it saves a lot of time if the different remotes are
actually just different clones of the same project).
  • Loading branch information
Amber Yust committed Feb 3, 2011
1 parent dcf667a commit 83b24dc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions slave/buildslave/commands/git.py
Expand Up @@ -85,8 +85,6 @@ def _dovccmd(self, command, cb=None, **kwargs):
def sourcedataMatches(self):
try:
olddata = self.readSourcedata()
if not olddata.startswith(self.repourl+' '):
return False
except IOError:
return False
return True
Expand Down

0 comments on commit 83b24dc

Please sign in to comment.