Skip to content
Snippets Groups Projects
Commit f0996cde authored by nfontrod's avatar nfontrod
Browse files

src/create_hooks.rs: fix hoox post-checkout

parent d1d01a26
Branches
Tags
No related merge requests found
...@@ -118,10 +118,10 @@ pub fn create_hooks(compression: &str, mode: &str) { ...@@ -118,10 +118,10 @@ pub fn create_hooks(compression: &str, mode: &str) {
arr=(${{res// / }}) \n\ arr=(${{res// / }}) \n\
original_commit=${{arr[5]}} \n\ original_commit=${{arr[5]}} \n\
target_commit=${{arr[7]}} \n\ target_commit=${{arr[7]}} \n\
\n \n\
if [ \"${{original_commit}}\" != \"${{target_commit}}\" ]; then if [ \"${{original_commit}}\" != \"${{target_commit}}\" ]; then \n\
git -c core.hooksPath=/dev/null co ${{original_commit}} && gblk pre-co && git -c core.hooksPath=/dev/null checkout ${{target_commit}} && gblk checkout --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 {} \n\
fi fi \n\
", mode); ", mode);
let post_co_cmd = post_co_cmd.as_str(); let post_co_cmd = post_co_cmd.as_str();
let v = vec![post_commit_cmd, post_co_cmd]; let v = vec![post_commit_cmd, post_co_cmd];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment