fix: move server-default.toml inside crate that uses it
All checks were successful
Rust / build (push) Successful in 1m33s
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful

This commit is contained in:
Paul Campbell 2024-07-14 20:12:34 +01:00
parent 41c8a319b1
commit 639e561be6
3 changed files with 2 additions and 2 deletions

View file

@ -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.

View file

@ -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)