Skip to content

Commit f189581

Browse files
committed
test(git): Clarify checkout path
1 parent 2bdeb60 commit f189581

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/testsuite/git.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3873,25 +3873,25 @@ fn _corrupted_checkout(with_cli: bool) {
38733873

38743874
p.cargo("fetch").run();
38753875

3876-
let mut paths = t!(glob::glob(
3876+
let mut dep1_co_paths = t!(glob::glob(
38773877
paths::home()
38783878
.join(".cargo/git/checkouts/dep1-*/*")
38793879
.to_str()
38803880
.unwrap()
38813881
));
3882-
let path = paths.next().unwrap().unwrap();
3883-
let ok = path.join(".cargo-ok");
3882+
let dep1_co_path = dep1_co_paths.next().unwrap().unwrap();
3883+
let dep1_ok = dep1_co_path.join(".cargo-ok");
38843884

38853885
// Deleting this file simulates an interrupted checkout.
3886-
t!(fs::remove_file(&ok));
3886+
t!(fs::remove_file(&dep1_ok));
38873887

38883888
// This should refresh the checkout.
38893889
let mut e = p.cargo("fetch");
38903890
if with_cli {
38913891
e.env("CARGO_NET_GIT_FETCH_WITH_CLI", "true");
38923892
}
38933893
e.run();
3894-
assert!(ok.exists());
3894+
assert!(dep1_ok.exists());
38953895
}
38963896

38973897
#[cargo_test]

0 commit comments

Comments
 (0)