@@ -38,8 +38,8 @@ pub fn safe_git_clone(source: &Path, v: &Version, target: &Path) -> CloneResult
38
38
target. as_str ( ) . unwrap ( ) . to_owned ( ) ] ) ;
39
39
let outp = opt_outp. expect ( "Failed to exec `git`" ) ;
40
40
if !outp. status . success ( ) {
41
- println ! ( "{}" , str :: from_utf8_owned( outp. output. clone( ) ) ) ;
42
- println ! ( "{}" , str :: from_utf8_owned( outp. error) ) ;
41
+ println ! ( "{}" , str :: from_utf8_owned( outp. output. clone( ) ) . unwrap ( ) ) ;
42
+ println ! ( "{}" , str :: from_utf8_owned( outp. error) . unwrap ( ) ) ;
43
43
return DirToUse ( target. clone ( ) ) ;
44
44
}
45
45
else {
@@ -54,8 +54,8 @@ pub fn safe_git_clone(source: &Path, v: &Version, target: &Path) -> CloneResult
54
54
format ! ( "--git-dir={}" , git_dir. as_str( ) . unwrap( ) . to_owned( ) ) ,
55
55
~"checkout", format ! ( "{}" , * s) ] ) . expect ( "Failed to exec `git`" ) ;
56
56
if !outp. status . success ( ) {
57
- println ! ( "{}" , str :: from_utf8_owned( outp. output. clone( ) ) ) ;
58
- println ! ( "{}" , str :: from_utf8_owned( outp. error) ) ;
57
+ println ! ( "{}" , str :: from_utf8_owned( outp. output. clone( ) ) . unwrap ( ) ) ;
58
+ println ! ( "{}" , str :: from_utf8_owned( outp. error) . unwrap ( ) ) ;
59
59
return DirToUse ( target. clone ( ) ) ;
60
60
}
61
61
}
@@ -114,8 +114,8 @@ pub fn git_clone_url(source: &str, target: &Path, v: &Version) {
114
114
target. as_str ( ) . unwrap ( ) . to_owned ( ) ] ) ;
115
115
let outp = opt_outp. expect ( "Failed to exec `git`" ) ;
116
116
if !outp. status . success ( ) {
117
- debug ! ( "{}" , str :: from_utf8_owned( outp. output. clone( ) ) ) ;
118
- debug ! ( "{}" , str :: from_utf8_owned( outp. error) ) ;
117
+ debug ! ( "{}" , str :: from_utf8_owned( outp. output. clone( ) ) . unwrap ( ) ) ;
118
+ debug ! ( "{}" , str :: from_utf8_owned( outp. error) . unwrap ( ) ) ;
119
119
cond. raise ( ( source. to_owned ( ) , target. clone ( ) ) )
120
120
}
121
121
else {
@@ -125,8 +125,8 @@ pub fn git_clone_url(source: &str, target: &Path, v: &Version) {
125
125
target) ;
126
126
let outp = opt_outp. expect ( "Failed to exec `git`" ) ;
127
127
if !outp. status . success ( ) {
128
- debug ! ( "{}" , str :: from_utf8_owned( outp. output. clone( ) ) ) ;
129
- debug ! ( "{}" , str :: from_utf8_owned( outp. error) ) ;
128
+ debug ! ( "{}" , str :: from_utf8_owned( outp. output. clone( ) ) . unwrap ( ) ) ;
129
+ debug ! ( "{}" , str :: from_utf8_owned( outp. error) . unwrap ( ) ) ;
130
130
cond. raise ( ( source. to_owned ( ) , target. clone ( ) ) )
131
131
}
132
132
}
0 commit comments