Browse Source

Fix Git hooks not being executed on Windows when running as a service (#1149)

Closes #1139
tags/v1.1.0
Andrey Nering 7 years ago
parent
commit
d2b2881306
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      modules/minwinsvc/svc_windows.go

+ 2
- 1
modules/minwinsvc/svc_windows.go View File

@@ -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()

Loading…
Cancel
Save