Files
deb-python-pygit2/pygit2
Mark Adams 87beb76dcc Modify Index.write_tree() to have more robust Repository detection
Currently, Index.write_tree() relies on either the caller passing in a
`repo=` arg or the underlying `git_index` being already bound to a
`git_repository`. This ignores the case where the caller does not pass
a `repo` argument to `Index.write_tree()` but the `Index._repo`
property is populated on the index.

This change modifies Index.write_tree() to use the passed-in `repo`
argument, falls back to using `Index._repo` and then assumes that
`git_index` must be bound to a `git_repository`. This change should make
Index.write_tree() a little more robust in the most common use-case.
2017-06-05 16:02:01 -05:00
..
2017-04-25 19:08:10 +02:00
2017-03-22 21:15:34 +01:00
2017-03-22 21:15:34 +01:00
2017-03-22 21:15:34 +01:00
2017-03-22 21:15:34 +01:00
2017-04-20 22:32:03 +02:00
2017-03-22 21:15:34 +01:00
2017-03-22 21:15:34 +01:00
2017-03-22 21:15:34 +01:00
2017-03-22 21:15:34 +01:00
2017-03-22 21:15:34 +01:00
2017-03-22 21:15:34 +01:00
2017-03-22 21:15:34 +01:00
2017-03-22 21:15:34 +01:00
2017-03-22 21:15:34 +01:00