aboutsummaryrefslogtreecommitdiff
path: root/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/build.rs b/build.rs
new file mode 100644
index 0000000..4915967
--- /dev/null
+++ b/build.rs
@@ -0,0 +1,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);
+ }
+}