Commit c0a8d97
committed
Provide target repository to write the index to
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.1 parent 0cff089 commit c0a8d97
1 file changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
| 119 | + | |
123 | 120 | | |
124 | 121 | | |
125 | 122 | | |
| |||
0 commit comments