mirror of
https://github.com/go-gitea/gitea
synced 2024-08-18 13:20:51 +02:00
Fix Git hooks not being executed on Windows when running as a service (#1149)
Closes #1139
This commit is contained in:
parent
5d40db629c
commit
d2b2881306
@ -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…
Reference in New Issue
Block a user