We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3be451 commit 3ddfe53Copy full SHA for 3ddfe53
build.rs
@@ -3,7 +3,7 @@ use std::path::{Path, PathBuf};
3
4
fn main() -> std::io::Result<()> {
5
println!("cargo:rerun-if-changed=src/themes");
6
- {
+ if Path::new(".git").exists() {
7
fn read_fn(p: impl AsRef<Path>) -> Result<VecDeque<PathBuf>, std::io::Error> {
8
std::fs::read_dir(p)?
9
.map(|res| res.map(|e| e.path()))
0 commit comments