mirror of
https://github.com/gogs/gogs.git
synced 2025-12-20 15:20:01 +01:00
vendor: update git-module
This commit is contained in:
1
vendor/github.com/gogits/git-module/hook.go
generated
vendored
1
vendor/github.com/gogits/git-module/hook.go
generated
vendored
@@ -84,6 +84,7 @@ func (h *Hook) Update() error {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
os.MkdirAll(path.Dir(h.path), os.ModePerm)
|
||||
return ioutil.WriteFile(h.path, []byte(strings.Replace(h.Content, "\r", "", -1)), os.ModePerm)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user