Skip to content

Commit

Permalink
chore: ✨ enable setup-git-hooks on windows (nushell#9097)
Browse files Browse the repository at this point in the history
# 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
  • Loading branch information
melMass committed May 12, 2023
1 parent 39cdf56 commit 45c17d9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions toolkit.nu
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit 45c17d9

Please sign in to comment.