projects
/
cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d3ca92
)
Restore global initialization
author
Aleksey Kladov
<aleksey.kladov@gmail.com>
Thu, 8 Mar 2018 19:06:02 +0000
(22:06 +0300)
committer
Aleksey Kladov
<aleksey.kladov@gmail.com>
Thu, 8 Mar 2018 20:31:56 +0000
(23:31 +0300)
src/bin/cargo.rs
patch
|
blob
|
history
diff --git
a/src/bin/cargo.rs
b/src/bin/cargo.rs
index 9d01f9c3c04c3651ae882173103df58af088db26..716fddec2136fbb1829058c0eda515e971cd699d 100644
(file)
--- a/
src/bin/cargo.rs
+++ b/
src/bin/cargo.rs
@@
-88,13
+88,18
@@
fn main() {
}
};
- let result = cli::do_main(&mut config);
- match result {
+ match main_inner(&mut config) {
Err(e) => cargo::exit_with_error(e, &mut *config.shell()),
Ok(()) => {}
}
}
+fn main_inner(config: &mut Config) -> CliResult {
+ init_git_transports(config);
+ let _token = cargo::util::job::setup();
+ cli::do_main(config)
+}
+
macro_rules! each_subcommand{
($mac:ident) => {
}