mirror of
https://github.com/nushell/nushell.git
synced 2024-11-29 03:44:19 +01:00
chore: ✨ enable setup-git-hooks on windows (#9097)
# 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
This commit is contained in:
parent
39cdf56214
commit
45c17d9664
@ -233,10 +233,6 @@ export def "check pr" [
|
|||||||
# - `toolkit fmt --check --verbose` on `git commit`
|
# - `toolkit fmt --check --verbose` on `git commit`
|
||||||
# - `toolkit fmt --check --verbose` and `toolkit clippy --verbose` on `git push`
|
# - `toolkit fmt --check --verbose` and `toolkit clippy --verbose` on `git push`
|
||||||
export def setup-git-hooks [] {
|
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]"
|
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" {
|
if (input) == "y" {
|
||||||
print $"running ('toolkit setup-git-hooks' | pretty-print-command)"
|
print $"running ('toolkit setup-git-hooks' | pretty-print-command)"
|
||||||
|
Loading…
Reference in New Issue
Block a user