Skip to content

Commit

Permalink
Fix Git hooks not being executed on Windows when running as a service (
Browse files Browse the repository at this point in the history
…#1149)

Closes #1139
  • Loading branch information
andreynering authored and lunny committed Mar 9, 2017
1 parent 5d40db6 commit d2b2881
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/minwinsvc/svc_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ var (
onExit func()
guard sync.Mutex
skip, _ = strconv.ParseBool(os.Getenv("SKIP_MINWINSVC"))
isSSH = os.Getenv("SSH_ORIGINAL_COMMAND") != ""
)

func init() {
if skip {
if skip || isSSH {
return
}
interactive, err := svc.IsAnInteractiveSession()
Expand Down

0 comments on commit d2b2881

Please sign in to comment.