File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -174,9 +174,9 @@ impl <'repo> Rebase<'repo> {
174
174
175
175
/// Finishes a rebase that is currently in progress once all patches have
176
176
/// been applied.
177
- pub fn finish ( & mut self , signature : & Signature ) -> Result < ( ) , Error > {
177
+ pub fn finish ( & mut self , signature : Option < & Signature > ) -> Result < ( ) , Error > {
178
178
unsafe {
179
- try_call ! ( raw:: git_rebase_finish( self . raw, signature. raw( ) ) ) ;
179
+ try_call ! ( raw:: git_rebase_finish( self . raw, signature. map ( |s| s . raw( ) ) ) ) ;
180
180
}
181
181
182
182
Ok ( ( ) )
@@ -407,5 +407,6 @@ mod tests {
407
407
assert_eq ! ( commit. author( ) . name( ) , Some ( "testname" ) ) ;
408
408
assert_eq ! ( commit. author( ) . email( ) , Some ( "testemail" ) ) ;
409
409
}
410
+ rebase. finish ( None ) . unwrap ( ) ;
410
411
}
411
412
}
You can’t perform that action at this time.
0 commit comments