Merge pull request #307 from adammhaile/master

Fixing remote_git_name
This commit is contained in:
Devan Goodwin 2017-12-04 14:44:52 -04:00 committed by GitHub
commit 73448515e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -49,7 +49,11 @@ class FedoraGitReleaser(Releaser):
self.git_branches = \
self.releaser_config.get(self.target, "branches").split(" ")
if self.config.has_option(self.target, "remote_git_name"):
# check .tito/releasers.conf
if self.releaser_config.has_option(self.target, "remote_git_name"):
overwrite_checkout = self.releaser_config.get(self.target, "remote_git_name")
# fallback to old, incorrect, location: .tito/packages/tito.props
elif self.config.has_option(self.target, "remote_git_name"):
overwrite_checkout = self.config.get(self.target, "remote_git_name")
else:
overwrite_checkout = None

View file

@ -222,8 +222,10 @@ For example let say you have in releaser.conf:
releaser = tito.release.DistGitReleaser
branches = satellite-6.0-rhel-6
+
and then in package directory you can create tito.props with content:
and then you can add remote_git_name:
[git-sat]
releaser = tito.release.DistGitReleaser
branches = satellite-6.0-rhel-6
remote_git_name = ruby193-rubygem-simple-navigation
And it will push package into ruby193-rubygem-simple-navigation dist-git despite the
fact that it is in /rubygem-simple-navigation directory. And project name (as taken