Skip to content

Commit

Permalink
work on #2093
Browse files Browse the repository at this point in the history
  • Loading branch information
unknwon committed Dec 3, 2015
1 parent a51acf1 commit 81133d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 81133d4

Please sign in to comment.