File tree Expand file tree Collapse file tree 2 files changed +13
-12
lines changed
Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -104,9 +104,9 @@ mod tests {
104104 let root = repo. path ( ) . parent ( ) . unwrap ( ) ;
105105
106106 let hook = b"#!/bin/sh
107- echo 'rejected'
108- exit 1
109- " ;
107+ echo 'rejected'
108+ exit 1
109+ ";
110110
111111 git2_hooks:: create_hook (
112112 & repo,
@@ -141,9 +141,9 @@ exit 1
141141 crate :: sync:: utils:: repo_work_dir ( repo_path) . unwrap ( ) ;
142142
143143 let hook = b"#!/bin/sh
144- echo \" $(pwd)\"
145- exit 1
146- " ;
144+ echo \" $(pwd)\"
145+ exit 1
146+ ";
147147 git2_hooks:: create_hook (
148148 & repo,
149149 git2_hooks:: HOOK_PRE_COMMIT ,
@@ -166,9 +166,10 @@ exit 1
166166 let root = repo. path ( ) . parent ( ) . unwrap ( ) ;
167167
168168 let hook = b"#!/bin/sh
169- echo 'msg' > \" $1\"
170- echo 'rejected'
171- exit 1" ;
169+ echo 'msg' > \" $1\"
170+ echo 'rejected'
171+ exit 1
172+ " ;
172173
173174 git2_hooks:: create_hook (
174175 & repo,
Original file line number Diff line number Diff line change @@ -532,9 +532,9 @@ sys.exit(1)
532532 let ( _td, repo) = repo_init ( ) ;
533533
534534 let hook = b"#!/bin/sh
535- echo 'msg' > \" $1\"
536- echo 'rejected'
537- exit 1
535+ echo 'msg' > \" $1\"
536+ echo 'rejected'
537+ exit 1
538538 " ;
539539
540540 create_hook ( & repo, HOOK_COMMIT_MSG , hook) ;
You can’t perform that action at this time.
0 commit comments