This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
wangwei
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Fix Git hooks not being executed on Windows when running as a service (
#1149
)
Closes
#1139
tags/v1.2.0-rc1
Andrey Nering
Lunny Xiao
9 years ago
parent
8595a5ae44
commit
a52215e70c
1 changed files
with
2 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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()
Write
Preview
Loading…
Cancel
Save