Commit d9cd246
gvfs-helper: handle pack-file after single POST request
If our POST request includes a commit ID, then the the remote will
send a pack-file containing the commit and all trees reachable from
its root tree. With the current implementation, this causes a
failure since we call install_loose() when asking for one object.
Modify the condition to check for install_pack() when the response
type changes.
Also, create a tempfile for the pack-file download or else we will
have problems!
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>1 parent c8ddca2 commit d9cd246
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1119 | 1119 | | |
1120 | 1120 | | |
1121 | 1121 | | |
1122 | | - | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
1123 | 1125 | | |
1124 | 1126 | | |
1125 | 1127 | | |
| |||
2278 | 2280 | | |
2279 | 2281 | | |
2280 | 2282 | | |
2281 | | - | |
| 2283 | + | |
2282 | 2284 | | |
2283 | | - | |
2284 | | - | |
| 2285 | + | |
| 2286 | + | |
2285 | 2287 | | |
2286 | 2288 | | |
2287 | 2289 | | |
| |||
0 commit comments