From 83b24dcc9b478a6589bd8df9250110bf5e7f0ebd Mon Sep 17 00:00:00 2001 From: Amber Yust Date: Wed, 2 Feb 2011 18:22:52 -0800 Subject: [PATCH] Ignore repo changes for Git sourcedataMatches() 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). --- slave/buildslave/commands/git.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/slave/buildslave/commands/git.py b/slave/buildslave/commands/git.py index 44a9fc4e80f..f08ac8caaf9 100644 --- a/slave/buildslave/commands/git.py +++ b/slave/buildslave/commands/git.py @@ -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