Skip to content

Commit

Permalink
Note that .git folder cannot be tracked under a git repo
Browse files Browse the repository at this point in the history
  • Loading branch information
weihanglo committed May 3, 2022
1 parent aff8e81 commit 20c0c58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/testsuite/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ fn reserved_name() {
#[cargo_test]
fn git_autodetect() {
let project_root = &paths::root().join("foo");
// Need to create `.git` dir manually because it cannot be tracked under a git repo
fs::create_dir_all(project_root.join(".git")).unwrap();

snapbox::cmd::Command::cargo()
Expand Down

0 comments on commit 20c0c58

Please sign in to comment.