From 45c17d96646de2b7900a57fe5df724392121c58b Mon Sep 17 00:00:00 2001 From: Mel Massadian Date: Fri, 12 May 2023 03:51:06 +0200 Subject: [PATCH] =?UTF-8?q?chore:=20=E2=9C=A8=20enable=20setup-git-hooks?= =?UTF-8?q?=20on=20windows=20(#9097)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Description Enable setup-git-hooks on windows. It works just fine without doing anything special. More testing from other windows users is welcomed as there might be a reason it was done that way before. # User-Facing Changes `toolkit setup-git-hooks` now work on windows --- toolkit.nu | 4 ---- 1 file changed, 4 deletions(-) diff --git a/toolkit.nu b/toolkit.nu index f805fac17517..404cd4ad38eb 100644 --- a/toolkit.nu +++ b/toolkit.nu @@ -233,10 +233,6 @@ export def "check pr" [ # - `toolkit fmt --check --verbose` on `git commit` # - `toolkit fmt --check --verbose` and `toolkit clippy --verbose` on `git push` export def setup-git-hooks [] { - if $nu.os-info.name == windows { - return (print "This git hook isn't available on Windows. Sorry!") - } - print "This command will change your local git configuration and hence modify your development workflow. Are you sure you want to continue? [y]" if (input) == "y" { print $"running ('toolkit setup-git-hooks' | pretty-print-command)"