File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,9 @@ impl Commands {
24
24
25
25
let output = cmd. output ( ) . expect ( "Failed to execute command" ) ;
26
26
// Convert the output bytes to a String and print it
27
- if output. status . success ( ) {
28
- let stdout: String = String :: from_utf8 ( output. stdout ) . unwrap ( ) ;
29
- stdout
30
- } else {
31
- let stderr = String :: from_utf8 ( output. stderr ) . unwrap ( ) ;
32
- stderr
33
- }
27
+ let stdout: String = String :: from_utf8 ( output. stdout ) . unwrap ( ) ;
28
+ let stderr = String :: from_utf8 ( output. stderr ) . unwrap ( ) ;
29
+ format ! ( "{}\n {}" , stdout, stderr)
34
30
}
35
31
36
32
#[ allow( dead_code) ]
Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ fn push() {
115
115
vec ! [ "push" . to_string( ) , "--force-with-lease" . to_string( ) ] ,
116
116
) ;
117
117
let output: String = git_push. call ( ) ;
118
+ println ! ( "Push {}" , output) ;
118
119
}
119
120
120
121
fn parse_git_status ( output : & str ) -> ( String , Vec < String > , Vec < String > ) {
You can’t perform that action at this time.
0 commit comments