Skip to content

Commit 20c0c58

Browse files
committed
Note that .git folder cannot be tracked under a git repo
1 parent aff8e81 commit 20c0c58

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/testsuite/init.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ fn reserved_name() {
401401
#[cargo_test]
402402
fn git_autodetect() {
403403
let project_root = &paths::root().join("foo");
404+
// Need to create `.git` dir manually because it cannot be tracked under a git repo
404405
fs::create_dir_all(project_root.join(".git")).unwrap();
405406

406407
snapbox::cmd::Command::cargo()

0 commit comments

Comments
 (0)