Commit 71bf3e5
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 6d95e3c commit 71bf3e5
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1126 | 1126 | | |
1127 | 1127 | | |
1128 | 1128 | | |
1129 | | - | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
1130 | 1132 | | |
1131 | 1133 | | |
1132 | 1134 | | |
| |||
2285 | 2287 | | |
2286 | 2288 | | |
2287 | 2289 | | |
2288 | | - | |
| 2290 | + | |
2289 | 2291 | | |
2290 | | - | |
2291 | | - | |
| 2292 | + | |
| 2293 | + | |
2292 | 2294 | | |
2293 | 2295 | | |
2294 | 2296 | | |
| |||
0 commit comments