Browse Source

work on #2093

for-closed-social
Unknwon 9 years ago
parent
commit
81133d45a1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/repo.go

+ 1
- 1
models/repo.go View File

@ -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)
}

Loading…
Cancel
Save