[v2,1/5] setup_rustfmt_hook: create hooks dir if it doesn't exist
diff mbox series

Message ID 20181211034601.29061-1-ruscur@russell.cc
State Accepted
Headers show
Series
  • [v2,1/5] setup_rustfmt_hook: create hooks dir if it doesn't exist
Related show

Commit Message

Russell Currey Dec. 11, 2018, 3:45 a.m. UTC
Signed-off-by: Russell Currey <ruscur@russell.cc>
---
 setup_rustfmt_hook.sh | 1 +
 1 file changed, 1 insertion(+)

Comments

Andrew Donnellan Dec. 14, 2018, 3:59 a.m. UTC | #1
On 11/12/18 2:45 pm, Russell Currey wrote:
> Signed-off-by: Russell Currey <ruscur@russell.cc>
Series applied to master: b5431f74fc663222caace3160691c8519d4411fe

Thanks,

Patch
diff mbox series

diff --git a/setup_rustfmt_hook.sh b/setup_rustfmt_hook.sh
index 76a8932..4088926 100755
--- a/setup_rustfmt_hook.sh
+++ b/setup_rustfmt_hook.sh
@@ -2,6 +2,7 @@ 
 rustup component add rustfmt-preview
 
 rustfmt_path=`which rustfmt`
+mkdir -p .git/hooks
 echo "#!/bin/bash
 declare -a rust_files=()
 files=\$(git diff-index --name-only HEAD)