diff --git a/gordian/repo.py b/gordian/repo.py index ace55db..9298fe9 100644 --- a/gordian/repo.py +++ b/gordian/repo.py @@ -130,7 +130,7 @@ def _set_target_branch(self, target_branch, source_branch=None): def _get_repo_contents(self, path): try: logger.debug(f'Fetching repo contents {path}...') - return self._source_repo.get_contents(path, self.source_branch) + return self._source_repo.get_contents(path, self.target_branch) except GithubException as e: if e.status == 404: raise e @@ -248,6 +248,6 @@ def _get_new_version(self): elif self.semver_label == 'patch': patch = str(int(patch) + 1) self.new_version = '.'.join([major, minor, patch]) - + def get_github_client(self): return self._github