File tree 4 files changed +4
-7
lines changed
4 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ impl Context {
26
26
) -> anyhow:: Result < Self > {
27
27
let meta = cargo_metadata:: MetadataCommand :: new ( ) . exec ( ) ?;
28
28
let root = meta. workspace_root . clone ( ) ;
29
- let repo = git:: discover ( & root) ?. apply_environment ( ) ;
29
+ let repo = git:: discover ( & root) ?;
30
30
let crates_index = crate :: crates_index:: Index :: new_cargo_default ( ) ?;
31
31
let history = ( force_history_segmentation
32
32
|| matches ! ( bump, BumpSpec :: Auto )
Original file line number Diff line number Diff line change 53
53
W : io:: Write ,
54
54
P : Progress ,
55
55
{
56
- let repo = git:: discover ( working_dir) ?. apply_environment ( ) ;
56
+ let repo = git:: discover ( working_dir) ?;
57
57
let commit_id = repo. rev_parse_single ( rev_spec) ?. detach ( ) ;
58
58
let mut string_heap = BTreeSet :: < & ' static [ u8 ] > :: new ( ) ;
59
59
let needs_stats = file_stats || line_stats;
Original file line number Diff line number Diff line change @@ -26,9 +26,7 @@ pub fn checkout_exclusive(
26
26
thread_limit,
27
27
} : index:: checkout_exclusive:: Options ,
28
28
) -> anyhow:: Result < ( ) > {
29
- let repo = repo
30
- . map ( |dir| git_repository:: discover ( dir) . map ( |r| r. apply_environment ( ) ) )
31
- . transpose ( ) ?;
29
+ let repo = repo. map ( git_repository:: discover) . transpose ( ) ?;
32
30
33
31
let dest_directory = dest_directory. as_ref ( ) ;
34
32
if dest_directory. exists ( ) {
Original file line number Diff line number Diff line change @@ -89,8 +89,7 @@ pub fn main() -> Result<()> {
89
89
mapping. full . modify ( to_match_settings) ;
90
90
mapping. reduced . modify ( to_match_settings) ;
91
91
let mut repo = git:: ThreadSafeRepository :: discover_opts ( repository, Default :: default ( ) , mapping)
92
- . map ( git:: Repository :: from)
93
- . map ( |r| r. apply_environment ( ) ) ?;
92
+ . map ( git:: Repository :: from) ?;
94
93
if !config. is_empty ( ) {
95
94
repo. config_snapshot_mut ( )
96
95
. append_config ( config. iter ( ) , git:: config:: Source :: Cli )
You can’t perform that action at this time.
0 commit comments