mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-01 00:50:57 +00:00
test_git: fix some clippy ref errors
This commit is contained in:
parent
1240487cb6
commit
41631bc0e6
2 changed files with 2 additions and 2 deletions
|
@ -685,7 +685,7 @@ fn test_config_unset_for_repo() {
|
||||||
test_env.jj_cmd_ok(&repo_path, &["config", "unset", "--repo", "test-key"]);
|
test_env.jj_cmd_ok(&repo_path, &["config", "unset", "--repo", "test-key"]);
|
||||||
|
|
||||||
let repo_config_path = repo_path.join(".jj/repo/config.toml");
|
let repo_config_path = repo_path.join(".jj/repo/config.toml");
|
||||||
let repo_config_toml = std::fs::read_to_string(&repo_config_path).unwrap();
|
let repo_config_toml = std::fs::read_to_string(repo_config_path).unwrap();
|
||||||
insta::assert_snapshot!(repo_config_toml, @"");
|
insta::assert_snapshot!(repo_config_toml, @"");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3514,7 +3514,7 @@ fn test_shallow_commits_lack_parents() {
|
||||||
for commit in shallow_commits {
|
for commit in shallow_commits {
|
||||||
writeln!(buf, "{commit}").unwrap();
|
writeln!(buf, "{commit}").unwrap();
|
||||||
}
|
}
|
||||||
fs::write(&shallow_file, buf).unwrap();
|
fs::write(shallow_file, buf).unwrap();
|
||||||
};
|
};
|
||||||
make_shallow(repo, vec![b.id(), c.id()]);
|
make_shallow(repo, vec![b.id(), c.id()]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue