[IMP] forwardport: enable negative refspecs

Requires Git 2.29, new mergebot has access to Git 2.34
This commit is contained in:
Xavier Morel 2022-12-07 13:24:07 +01:00
parent 0f3647b7c7
commit eb6dbf5d9b

View File

@ -1090,9 +1090,9 @@ stderr:
# works properly
repo = git(repo_dir)
repo.config('--add', 'remote.origin.fetch', '+refs/heads/*:refs/heads/*')
# negative refspecs require
# repo.config('--add', 'remote.origin.fetch', '^refs/heads/tmp.*')
# repo.config('--add', 'remote.origin.fetch', '^refs/heads/staging.*')
# negative refspecs require git 2.29
repo.config('--add', 'remote.origin.fetch', '^refs/heads/tmp.*')
repo.config('--add', 'remote.origin.fetch', '^refs/heads/staging.*')
return repo
def _outstanding(self, cutoff):