Fix worktree initialization

This commit is contained in:
2022-01-24 17:24:24 +01:00
parent 881a33dc96
commit f2f1d5bcaf
3 changed files with 28 additions and 6 deletions

View File

@@ -23,7 +23,7 @@ fn main() {
process::exit(1);
}
};
match grm::sync_trees(config) {
match grm::sync_trees(config, args.init_worktree == "true") {
Ok(success) => {
if !success {
process::exit(1)
@@ -93,7 +93,7 @@ fn main() {
let config = config::Config::from_trees(trees);
match grm::sync_trees(config) {
match grm::sync_trees(config, args.init_worktree == "true") {
Ok(success) => {
if !success {
process::exit(1)