changes to ignore in accordance with stable serialization

This commit is contained in:
aaron-jack-manning 2022-09-09 11:18:49 +10:00
parent 8a6d4b18cb
commit f1b69574c4

View File

@ -27,14 +27,14 @@ pub fn command(args : Vec<String>, vcs : Vcs, vault_folder : &path::Path) -> Res
}
pub fn create_gitignore(vault_folder : &path::Path) -> Result<(), error::Error> {
Ok(fs::write(vault_folder.join(".gitignore"), "state.toml\ntemp.toml\ntemp.md")?)
Ok(fs::write(vault_folder.join(".gitignore"), "temp.toml\ntemp.md")?)
}
pub fn set_svn_ignore(vault_folder : &path::Path) -> Result<(), error::Error> {
let mut child = process::Command::new("svn")
.current_dir(vault_folder)
.args(&["propset", "svn:ignore", "state.toml\ntemp.toml\ntemp.md", "."])
.args(&["propset", "svn:ignore", "temp.toml\ntemp.md", "."])
.spawn()?;
let _ = child.wait()?;