mirror of
https://github.com/rpm-software-management/tito.git
synced 2025-02-23 12:12:47 +00:00
Fixing remote_git_name
This commit is contained in:
parent
e3f00bc89d
commit
8c92f424fc
2 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue