aboutsummaryrefslogtreecommitdiff
path: root/build.rs
blob: 49159670e71577a930ee3be2ff1a10f80258fb6a (plain)
1
2
3
4
5
6
7
8
9
10
use std::fs::{self, File};
use std::path::Path;

fn main() {
    let path = Path::new(".git").join("refs").join("heads").join("master");
    if !path.exists() {
        let _ = fs::create_dir_all(path.parent().unwrap());
        let _ = File::create(&path);
    }
}