about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2017-04-03 15:28:06 -0700
committerJosh Stone <jistone@redhat.com>2017-04-03 15:28:06 -0700
commit4d32ff4e498c391d65b44d26cfb453651dc3da7b (patch)
treea710e39a38e4683203b3ffe64aeabc7b1e96aab1 /src/bootstrap
parente9cfc300a3a5b5a6f6f27df3305338f4b451366d (diff)
downloadrust-4d32ff4e498c391d65b44d26cfb453651dc3da7b.tar.gz
rust-4d32ff4e498c391d65b44d26cfb453651dc3da7b.zip
Loosen src_is_git to just check exists()
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs
index f80ba017f07..8303a40bb69 100644
--- a/src/bootstrap/lib.rs
+++ b/src/bootstrap/lib.rs
@@ -234,7 +234,7 @@ impl Build {
         };
         let rust_info = channel::GitInfo::new(&src);
         let cargo_info = channel::GitInfo::new(&src.join("cargo"));
-        let src_is_git = src.join(".git").is_dir();
+        let src_is_git = src.join(".git").exists();
 
         Build {
             flags: flags,