File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -90,9 +90,9 @@ mod tests {
9090 let root = repo. path ( ) . parent ( ) . unwrap ( ) ;
9191
9292 let hook = b"#!/bin/sh
93- echo 'rejected'
94- exit 1
95- ";
93+ echo 'rejected'
94+ exit 1
95+ " ;
9696
9797 git2_hooks:: create_hook (
9898 & repo,
@@ -127,10 +127,9 @@ mod tests {
127127 crate :: sync:: utils:: repo_work_dir ( repo_path) . unwrap ( ) ;
128128
129129 let hook = b"#!/bin/sh
130- echo \" $(pwd)\"
131- exit 1
132- " ;
133-
130+ echo \" $(pwd)\"
131+ exit 1
132+ " ;
134133 git2_hooks:: create_hook (
135134 & repo,
136135 git2_hooks:: HOOK_PRE_COMMIT ,
@@ -153,10 +152,9 @@ mod tests {
153152 let root = repo. path ( ) . parent ( ) . unwrap ( ) ;
154153
155154 let hook = b"#!/bin/sh
156- echo 'msg' > \" $1\"
157- echo 'rejected'
158- exit 1
159- " ;
155+ echo 'msg' > \" $1\"
156+ echo 'rejected'
157+ exit 1" ;
160158
161159 git2_hooks:: create_hook (
162160 & repo,
You can’t perform that action at this time.
0 commit comments