allow to override name of remote dist-git repo

This commit is contained in:
Miroslav Suchý 2013-05-09 15:19:30 +02:00
parent e1558c06c8
commit ca72ea19f6
2 changed files with 13 additions and 0 deletions

View file

@ -470,6 +470,10 @@ class FedoraGitReleaser(Releaser):
self.git_branches = \
self.releaser_config.get(self.target, "branches").split(" ")
overwrite_checkout = self.config.get(self.target, "remote_git_name")
if overwrite_checkout:
self.project_name = overwrite_checkout
self.package_workdir = os.path.join(self.working_dir,
self.project_name)

View file

@ -173,6 +173,15 @@ changelog format:
- Resolves: #1111 - description
- Related: #1111 - description
RELEASER
--------
You can create section with the name same as releaser target and there you can
specify this option:
remote_git_name::
This is usefull for FedoraGitReleaser and DistGitReleaser and will allow you to
specify name of remote dist-git branch.
EXAMPLE
-------
[globalconfig]