| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
The returned Index from Merge.commits() doesn't know where to write the index to because it is not backed by a repository. This prevents the example from running because the write() fails as it's only in-memory and has no notion of a target .git/index file. Skip the write() and just use writeTreeTo() immediately instead to write the index to the sample repository.
|
Excellent find. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This fixes #1128. The returned index is only in-memory and doesn't know where to write the .git/index file to so we should just skip the write() call and to just only use writeTreeTo() instead.