File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ fn main() -> Result<()> {
175
175
. read ( )
176
176
. context ( "reading remote branch sha" ) ?;
177
177
if branch_sha != remote_branch_sha {
178
- cmd ! ( sh, "git push -f" )
178
+ cmd ! ( sh, "git push -f origin {branch} " )
179
179
. run ( )
180
180
. context ( "force-pushing branch" ) ?;
181
181
}
@@ -194,11 +194,11 @@ fn main() -> Result<()> {
194
194
//
195
195
// sometimes it takes a few seconds for github to catch up, so in the event of a failure we try again
196
196
// a bit later.
197
- let push_result = cmd ! ( sh, "git push" ) . run ( ) ;
197
+ let push_result = cmd ! ( sh, "git push origin {base} " ) . run ( ) ;
198
198
if push_result. is_err ( ) {
199
199
println ! ( "this is normal; retrying in {}s" , args. push_retry_interval) ;
200
200
std:: thread:: sleep ( std:: time:: Duration :: from_secs_f64 ( args. push_retry_interval ) ) ;
201
- cmd ! ( sh, "git push" )
201
+ cmd ! ( sh, "git push origin {base} " )
202
202
. run ( )
203
203
. context ( "2nd attempt to push to base" ) ?;
204
204
}
You can’t perform that action at this time.
0 commit comments