1
1
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-18 03:14:37 +01:00
This commit is contained in:
Unknwon 2015-12-03 14:21:13 -05:00
parent a51acf1751
commit 81133d45a1

@ -350,7 +350,7 @@ func (repo *Repository) SavePatch(index int64, patch []byte) error {
return fmt.Errorf("PatchPath: %v", err)
}
os.MkdirAll(path.Dir(patchPath), os.ModePerm)
os.MkdirAll(filepath.Dir(patchPath), os.ModePerm)
if err = ioutil.WriteFile(patchPath, patch, 0644); err != nil {
return fmt.Errorf("WriteFile: %v", err)
}