Commit 3fcc433
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 <[email protected]>1 parent 78c7efc commit 3fcc433
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1128 | 1128 | | |
1129 | 1129 | | |
1130 | 1130 | | |
1131 | | - | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
1132 | 1134 | | |
1133 | 1135 | | |
1134 | 1136 | | |
| |||
2290 | 2292 | | |
2291 | 2293 | | |
2292 | 2294 | | |
2293 | | - | |
| 2295 | + | |
2294 | 2296 | | |
2295 | | - | |
2296 | | - | |
| 2297 | + | |
| 2298 | + | |
2297 | 2299 | | |
2298 | 2300 | | |
2299 | 2301 | | |
| |||
0 commit comments