@@ -248,22 +248,22 @@ impl ResolveRepo for RemoteGitRepo {
248
248
249
249
// NOTE: suspend_status is needed, otherwise the Shell ProgressBars and progress bars
250
250
// tracking git operation progress fight over the terminal
251
- t. suspend_status ( || -> std:: result:: Result < ( ) , crate :: Error > {
252
- // when this goes out of scope, the render thread will die
253
- let progress_root = prodash:: tree:: Root :: new ( ) ;
254
- // do not drop this until the end of the scope, otherwise the render thread will die
255
- let _handle = GitProgressRenderHandle :: new ( progress_root. clone ( ) ) ;
256
-
257
- // Clone remote repo if not exists
258
- if path. exists ( ) . not ( ) {
259
- git:: clone ( & self . url , & path, progress_root. clone ( ) )
260
- . context ( "failed to clone remote repository" ) ?;
261
- }
262
- // Whether we cloned or not, we need to fetch so we get tags
263
- git:: fetch ( & path, progress_root. clone ( ) )
264
- . context ( "failed to fetch updates from remote repository" ) ?;
265
- Ok ( ( ) )
266
- } ) ?;
251
+ // t.suspend_status(|| -> std::result::Result<(), crate::Error> {
252
+ // when this goes out of scope, the render thread will die
253
+ let progress_root = prodash:: tree:: Root :: new ( ) ;
254
+ // do not drop this until the end of the scope, otherwise the render thread will die
255
+ let _handle = GitProgressRenderHandle :: new ( progress_root. clone ( ) ) ;
256
+
257
+ // Clone remote repo if not exists
258
+ if path. exists ( ) . not ( ) {
259
+ git:: clone ( & self . url , & path, progress_root. clone ( ) )
260
+ . context ( "failed to clone remote repository" ) ?;
261
+ }
262
+ // Whether we cloned or not, we need to fetch so we get tags
263
+ git:: fetch ( & path, progress_root. clone ( ) )
264
+ . context ( "failed to fetch updates from remote repository" ) ?;
265
+ // Ok(())
266
+ // })?;
267
267
268
268
let refspec = t. get_checkout_target ( & path) ?;
269
269
let git_ref = git:: checkout ( & path, refspec) ?. to_string ( ) ;
0 commit comments