File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1057,7 +1057,11 @@ fn fetch_with_cli(
1057
1057
. env_remove ( "GIT_OBJECT_DIRECTORY" )
1058
1058
. env_remove ( "GIT_ALTERNATE_OBJECT_DIRECTORIES" )
1059
1059
. cwd ( repo. path ( ) ) ;
1060
- cmd. exec ( ) ?;
1060
+
1061
+ // We capture the output to avoid streaming it to the user's console during clones.
1062
+ // The required `on...line` callbacks currently do nothing.
1063
+ // The output appears to be included in error messages by default.
1064
+ cmd. exec_with_streaming ( & mut |_| Ok ( ( ) ) , & mut |_| Ok ( ( ) ) , true ) ?;
1061
1065
Ok ( ( ) )
1062
1066
}
1063
1067
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ impl GitSource {
33
33
Self {
34
34
git,
35
35
client : Client :: new ( ) ,
36
- strategy : FetchStrategy :: Libgit2 ,
36
+ strategy : FetchStrategy :: Cli ,
37
37
cache : cache. into ( ) ,
38
38
reporter : None ,
39
39
}
You can’t perform that action at this time.
0 commit comments