Skip to content

Commit

Permalink
Fix git cinnabar unbundle --clonebundle after b01ca2e
Browse files Browse the repository at this point in the history
  • Loading branch information
glandium committed Jun 26, 2024
1 parent db03c8a commit a3e650c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1891,6 +1891,9 @@ fn do_unbundle(store: &mut Store, clonebundle: bool, mut url: OsString) -> Resul
Err("Repository does not support clonebundles")?;
}
url = get_clonebundle_url(&mut *conn).ok_or("Repository didn't provide a clonebundle")?;
// Release the connection now, so that its cleanup doesn't conflict
// with get_bundle_connection. Yes, this API sucks.
std::mem::drop(conn);
eprintln!("Getting clone bundle from {}", url);
get_bundle_connection(&url).unwrap()
} else {
Expand Down

0 comments on commit a3e650c

Please sign in to comment.