@@ -35,7 +35,7 @@ pub fn safe_git_clone(source: &Path, v: &Version, target: &Path) -> CloneResult
3535 // FIXME (#9639): This needs to handle non-utf8 paths
3636 let outp = run:: process_output ( "git" , [ ~"clone",
3737 source. as_str ( ) . unwrap ( ) . to_owned ( ) ,
38- target. as_str ( ) . unwrap ( ) . to_owned ( ) ] ) ;
38+ target. as_str ( ) . unwrap ( ) . to_owned ( ) ] ) . unwrap ( ) ;
3939 if !outp. status . success ( ) {
4040 println ( str:: from_utf8_owned ( outp. output . clone ( ) ) ) ;
4141 println ( str:: from_utf8_owned ( outp. error ) ) ;
@@ -51,7 +51,7 @@ pub fn safe_git_clone(source: &Path, v: &Version, target: &Path) -> CloneResult
5151 let outp = run:: process_output ( "git" ,
5252 [ format ! ( "--work-tree={}" , target. as_str( ) . unwrap( ) . to_owned( ) ) ,
5353 format ! ( "--git-dir={}" , git_dir. as_str( ) . unwrap( ) . to_owned( ) ) ,
54- ~"checkout", format ! ( "{}" , * s) ] ) ;
54+ ~"checkout", format ! ( "{}" , * s) ] ) . unwrap ( ) ;
5555 if !outp. status . success ( ) {
5656 println ( str:: from_utf8_owned ( outp. output . clone ( ) ) ) ;
5757 println ( str:: from_utf8_owned ( outp. error ) ) ;
@@ -72,7 +72,7 @@ pub fn safe_git_clone(source: &Path, v: &Version, target: &Path) -> CloneResult
7272 let args = [ format ! ( "--work-tree={}" , target. as_str( ) . unwrap( ) . to_owned( ) ) ,
7373 format ! ( "--git-dir={}" , git_dir. as_str( ) . unwrap( ) . to_owned( ) ) ,
7474 ~"pull", ~"--no-edit", source. as_str ( ) . unwrap ( ) . to_owned ( ) ] ;
75- let outp = run:: process_output ( "git" , args) ;
75+ let outp = run:: process_output ( "git" , args) . unwrap ( ) ;
7676 assert ! ( outp. status. success( ) ) ;
7777 }
7878 CheckedOutSources
@@ -109,7 +109,7 @@ pub fn git_clone_url(source: &str, target: &Path, v: &Version) {
109109
110110 // FIXME (#9639): This needs to handle non-utf8 paths
111111 let outp = run:: process_output ( "git" , [ ~"clone", source. to_owned ( ) ,
112- target. as_str ( ) . unwrap ( ) . to_owned ( ) ] ) ;
112+ target. as_str ( ) . unwrap ( ) . to_owned ( ) ] ) . unwrap ( ) ;
113113 if !outp. status . success ( ) {
114114 debug ! ( "{}" , str :: from_utf8_owned( outp. output. clone( ) ) ) ;
115115 debug ! ( "{}" , str :: from_utf8_owned( outp. error) ) ;
@@ -133,7 +133,7 @@ pub fn git_clone_url(source: &str, target: &Path, v: &Version) {
133133
134134fn process_output_in_cwd ( prog : & str , args : & [ ~str ] , cwd : & Path ) -> ProcessOutput {
135135 let mut prog = Process :: new ( prog, args, ProcessOptions { dir : Some ( cwd)
136- , ..ProcessOptions :: new ( ) } ) ;
136+ , ..ProcessOptions :: new ( ) } ) . unwrap ( ) ;
137137 prog. finish_with_output ( )
138138}
139139
0 commit comments