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

src/create_hooks.rs: fix hoox post-checkout

parent 269dc7e5
Branches
No related tags found
No related merge requests found
...@@ -119,9 +119,9 @@ pub fn create_hooks(compression: &str, mode: &str) { ...@@ -119,9 +119,9 @@ pub fn create_hooks(compression: &str, mode: &str) {
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 {} \n\ \tgit -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 \n\ fi
", 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