Learn more about these different git repos.
Other Git URLs
a850a4c
@@ -112,7 +112,7 @@
continue
# Check out git
- fedpkgcmd = ['fedpkg', '--user', 'releng', 'clone', name]
+ fedpkgcmd = ['fedpkg', '--user', 'releng', 'clone', '--branch', 'master', name]
print('Checking out %s' % name)
if runme(fedpkgcmd, 'fedpkg', name, enviro):
Pagure dist-git repos can have different default branches than master, but during the mass rebuild, we always want to use the master branch.
This clones the repository on master even if it is not the default, and it also fails (=skips the package) if there is no master branch.
This prevents cases like https://pagure.io/releng/issue/9213
Not sure if it makes a difference in practice but the --branch flag should be specified before the name argument.
--branch
name
fedpkgcmd = ['fedpkg', '--user', 'releng', 'clone', '--branch', 'master', name]
Why?
Because it is an option to the clone command and name is an argument and the convention is to specify options before arguments (see the manpage for example).
I don't think it matters at all, but done.
rebased onto 3756ca1f7f28dabd0d6deb6e883215497b7d6225
rebased onto c24dd2dcdbd5783a11cc929c1e97156dac281783
Rebased.
rebased onto b0eb90e78d890c1603ecaa4d1d9a229adddab518
rebased onto 0ab9196498deb8961176d33dacf357b1b1041f49
rebased onto a850a4c
:thumbsup:
Pull-Request has been merged by cverna
Pagure dist-git repos can have different default branches than master,
but during the mass rebuild, we always want to use the master branch.
This clones the repository on master even if it is not the default,
and it also fails (=skips the package) if there is no master branch.
This prevents cases like https://pagure.io/releng/issue/9213