Skip to content

Commit f397799

Browse files
committed
deindent
1 parent e5e562e commit f397799

1 file changed

Lines changed: 9 additions & 11 deletions

File tree

asyncgit/src/sync/hooks.rs

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)