mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-06 03:52:36 +02:00
Fix diff css style, hooks \r char
This commit is contained in:
1 parent
963354c5d7
commit
3005c4f6db
2 files changed
+2
-2
No files matched your search
@@ -83,7 +83,7 @@ func (h *Hook) Update() error {
|
||||
if len(strings.TrimSpace(h.Content)) == 0 {
|
||||
return os.Remove(h.path)
|
||||
}
|
||||
return ioutil.WriteFile(h.path, []byte(h.Content), os.ModePerm)
|
||||
return ioutil.WriteFile(h.path, []byte(strings.Replace(h.Content, "\r", "", -1)), os.ModePerm)
|
||||
}
|
||||
|
||||
// ListHooks returns a list of Git hooks of given repository.
|
||||
|
||||
Reference in new issue
Block a user