summaryrefslogtreecommitdiff
path: root/git/index/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/index/base.py')
-rw-r--r--git/index/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/index/base.py b/git/index/base.py
index 54f73617..2bb62f32 100644
--- a/git/index/base.py
+++ b/git/index/base.py
@@ -272,7 +272,7 @@ class IndexFile(LazyMixin, diff.Diffable, Serializable):
return self
@classmethod
- def new(cls, repo: 'Repo', *tree_sha: bytes) -> 'IndexFile':
+ def new(cls, repo: 'Repo', *tree_sha: Union[str, Tree]) -> 'IndexFile':
""" Merge the given treeish revisions into a new index which is returned.
This method behaves like git-read-tree --aggressive when doing the merge.