File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -81,15 +81,15 @@ impl GitSync {
81
81
} ;
82
82
let num_roots_before = num_roots ( ) ?;
83
83
84
- let sha = cmd ! ( sh, "git rev-parse HEAD" ) . run ( ) . context ( "FAILED to get current commit" ) ?;
84
+ let sha = cmd ! ( sh, "git rev-parse HEAD" ) . output ( ) . context ( "FAILED to get current commit" ) ?. stdout ;
85
85
86
86
// Merge the fetched commit.
87
87
const MERGE_COMMIT_MESSAGE : & str = "Merge from rustc" ;
88
88
cmd ! ( sh, "git merge FETCH_HEAD --no-verify --no-ff -m {MERGE_COMMIT_MESSAGE}" )
89
89
. run ( )
90
90
. context ( "FAILED to merge new commits, something went wrong" ) ?;
91
91
92
- let current_sha = cmd ! ( sh, "git rev-parse HEAD" ) . run ( ) . context ( "FAILED to get current commit" ) ?;
92
+ let current_sha = cmd ! ( sh, "git rev-parse HEAD" ) . output ( ) . context ( "FAILED to get current commit" ) ?. stdout ;
93
93
if current_sha == sha {
94
94
cmd ! ( sh, "git reset --hard HEAD^" )
95
95
. run ( )
You can’t perform that action at this time.
0 commit comments