| |
@@ -629,8 +629,9 @@
|
| |
cli = self.new_cli()
|
| |
cli.clone()
|
| |
|
| |
- expected_cmd = ['git', 'clone', 'ssh://dude@localhost/repository_name',
|
| |
- '--origin', 'origin', '--progress']
|
| |
+ expected_cmd = ['git', 'clone', '-c', 'index.version=2',
|
| |
+ 'ssh://dude@localhost/repository_name', '--origin',
|
| |
+ 'origin', '--progress']
|
| |
_run_command.assert_called_once_with(expected_cmd,
|
| |
cwd=self.cloned_repo_path)
|
| |
output = sys.stderr.getvalue().strip()
|
| |
@@ -675,8 +676,9 @@
|
| |
cli = self.new_cli()
|
| |
cli.clone()
|
| |
|
| |
- expected_cmd = ['git', 'clone', 'ssh://dude@localhost/repository_name',
|
| |
- '--origin', 'origin', '--progress']
|
| |
+ expected_cmd = ['git', 'clone', '-c', 'index.version=2',
|
| |
+ 'ssh://dude@localhost/repository_name', '--origin',
|
| |
+ 'origin', '--progress']
|
| |
_run_command.assert_called_once_with(expected_cmd,
|
| |
cwd=self.cloned_repo_path)
|
| |
output = sys.stderr.getvalue().strip()
|
| |
The Git index version used by a repository is set when the repository is cloned. If the user has a non-default Git config like
feature.manyFiles=true
, index versions above the default of 2 may be used. On the other hand, GitPython, and consequently rpkg, do not support anything above 2. Create repositories that can be manipulated by rpkg by forcing index version 2 when cloning.Upstream issue:
https://github.com/gitpython-developers/GitPython/issues/1960
Original report at Fedora Package Maintainer Docs:
https://pagure.io/fedora-docs/package-maintainer-docs/pull-request/173