Skip to content

Commit f91aa10

Browse files
committed
revert stuff
1 parent caf83c8 commit f91aa10

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

asyncgit/src/sync/hooks.rs

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

git2-hooks/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)