File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ use serde_json::json;
15
15
use tokio:: process:: Command ;
16
16
17
17
use coffee_github:: repository:: Github ;
18
+ use coffee_github:: utils:: git_checkout;
18
19
use coffee_lib:: errors:: CoffeeError ;
19
20
use coffee_lib:: plugin_manager:: PluginManager ;
20
21
use coffee_lib:: repository:: Repository ;
@@ -286,6 +287,10 @@ impl PluginManager for CoffeeManager {
286
287
plugin. root_path = new_root_path;
287
288
plugin. exec_path = new_exec_path;
288
289
290
+ if let Some ( branch) = branch {
291
+ let _ = git_checkout ( & plugin. root_path , & branch, verbose) . await ?;
292
+ }
293
+
289
294
log:: debug!( "plugin: {:?}" , plugin) ;
290
295
let path = plugin. configure ( verbose) . await ?;
291
296
log:: debug!( "runnable plugin path {path}" ) ;
Original file line number Diff line number Diff line change 1
1
//! Github repository implementation
2
2
3
3
pub mod repository;
4
- mod utils;
4
+ pub mod utils;
5
5
6
6
#[ cfg( test) ]
7
7
mod tests {
You can’t perform that action at this time.
0 commit comments