Skip to content

Commit be8b8b8

Browse files
committed
Update to rust master
1 parent 79ed8ed commit be8b8b8

File tree

7 files changed

+88
-102
lines changed

7 files changed

+88
-102
lines changed

Cargo.lock

Lines changed: 57 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ flate2 = "0.1.0"
4141
semver = "0.1.3"
4242
url = "0.2.0"
4343
r2d2 = "0.2.0"
44-
r2d2_postgres = "0.2.0"
44+
r2d2_postgres = "0.3.0"
4545
openssl = "0.2.0"
46-
postgres = "0.2.1"
46+
postgres = "0.4"
4747
curl = "0.1.0"
4848
oauth2 = "0.1.0"
4949
log = "0.1.0"

src/bin/server.rs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,11 @@ fn main() {
1717
Err(..) => {
1818
let _ = fs::rmdir_recursive(&checkout);
1919
fs::mkdir_recursive(&checkout, io::USER_DIR).unwrap();
20-
let config = git2::Config::open_default().unwrap();
21-
let url = url.as_slice();
22-
cargo_registry::git::with_authentication(url, &config, |f| {
23-
let cb = git2::RemoteCallbacks::new().credentials(f);
24-
git2::build::RepoBuilder::new()
25-
.remote_callbacks(cb)
26-
.clone(url, &checkout)
27-
}).unwrap()
20+
let mut cb = git2::RemoteCallbacks::new();
21+
cb.credentials(cargo_registry::git::credentials);
22+
git2::build::RepoBuilder::new()
23+
.remote_callbacks(cb)
24+
.clone(url.as_slice(), &checkout).unwrap()
2825
}
2926
};
3027
let mut cfg = repo.config().unwrap();

0 commit comments

Comments
 (0)