Commit c429264
committed
libgit2: use set_ob() instead of wrap_odb() for a custom backend
The purpose of git_repository_warp_odb() is not to use a repository with
a custom odb backend, but to access an odb via functions which want a
repository object. A repository build this way has no path, no refs db,
no configuration, no worktree, etc. It is useless unless you're
e.g. trying to extract information out of a packfile via
git_object_lookup() and friends.
In order to have an otherwise "normal" repository but use a custom
backend for the objects, you need to open/init the repository as you
usually do and then set the custom odb.1 parent ec535c1 commit c429264
1 file changed
+11
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | 127 | | |
131 | | - | |
| 128 | + | |
132 | 129 | | |
133 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
142 | 143 | | |
143 | 144 | | |
144 | | - | |
| 145 | + | |
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
| |||
0 commit comments