diff --git a/src/create_hooks.rs b/src/create_hooks.rs index 7a100671944d808dd1b5d26ba6547d24e23f3abc..486e745ea6f046f029d52ed651063fc759802273 100644 --- a/src/create_hooks.rs +++ b/src/create_hooks.rs @@ -43,7 +43,6 @@ fn get_hooks_folder() -> PathBuf { p } - /// Function used to create a file /// /// # Arguments: @@ -84,7 +83,6 @@ fn create_file(folder: &PathBuf, file_name: &str, content: &str) { }); } - /// Add a gblkco alias in `.git/config` file at the end to ensure a quiet /// Checkout and a quiet cancel of this checkout fn update_config_file() { @@ -100,7 +98,7 @@ fn update_config_file() { .append(true) .open(&git_config) .unwrap(); - writeln!(file, "[alias]\n\tgblkco = checkout -q").unwrap(); + writeln!(file, "[alias]\n\tco = checkout -q").unwrap(); } /// Create 2 files in `.git/hooks` folder @@ -121,7 +119,7 @@ pub fn create_hooks(compression: &str, mode: &str) { original_commit=${{arr[5]}} \n\ target_commit=${{arr[7]}} \n\ \n - git -c core.hooksPath=/dev/null gblkco ${{original_commit}} && gblk pre-co && git -c core.hooksPath=/dev/null checkout ${{target_commit}} && gblk co --mode {} + git -c core.hooksPath=/dev/null co ${{original_commit}} && gblk pre-co && git -c core.hooksPath=/dev/null checkout ${{target_commit}} && gblk checkout --mode {} ", mode); let post_co_cmd = post_co_cmd.as_str(); let v = vec![post_commit_cmd, post_co_cmd];