From 639e561be60a6e22eda14e2b44764eee6afb6ae7 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sun, 14 Jul 2024 20:12:34 +0100 Subject: [PATCH] fix: move server-default.toml inside crate that uses it --- README.md | 2 +- server-default.toml => crates/server/server-default.toml | 0 crates/server/src/lib.rs | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename server-default.toml => crates/server/server-default.toml (100%) diff --git a/README.md b/README.md index 0511afd..7e60783 100644 --- a/README.md +++ b/README.md @@ -302,7 +302,7 @@ your repo: git next init ``` -This will create a `.git-next.toml` file. [Default](./default.toml) +This will create a `.git-next.toml` file. [Default](./crates/cli/default.toml) By default the expected branches are `main`, `next` and `dev`. Each of these three branches _must_ exist in your repo. diff --git a/server-default.toml b/crates/server/server-default.toml similarity index 100% rename from server-default.toml rename to crates/server/server-default.toml diff --git a/crates/server/src/lib.rs b/crates/server/src/lib.rs index 3dee926..67fae80 100644 --- a/crates/server/src/lib.rs +++ b/crates/server/src/lib.rs @@ -21,7 +21,7 @@ pub fn init(fs: FileSystem) { file_name ); } else { - match fs.file_write(&pathbuf, include_str!("../../../server-default.toml")) { + match fs.file_write(&pathbuf, include_str!("../server-default.toml")) { Ok(_) => println!("Created a default configuration file at {}", file_name), Err(e) => { eprintln!("Failed to write to the configuration file: {}", e)