Skip to content

Commit 4d32ff4

Browse files
committed
Loosen src_is_git to just check exists()
1 parent e9cfc30 commit 4d32ff4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ impl Build {
234234
};
235235
let rust_info = channel::GitInfo::new(&src);
236236
let cargo_info = channel::GitInfo::new(&src.join("cargo"));
237-
let src_is_git = src.join(".git").is_dir();
237+
let src_is_git = src.join(".git").exists();
238238

239239
Build {
240240
flags: flags,

0 commit comments

Comments
 (0)