From 81133d45a150e82a0d7f6bdef25802c3a3482fa7 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 3 Dec 2015 14:21:13 -0500 Subject: [PATCH] work on #2093 --- models/repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/repo.go b/models/repo.go index 772551db884..b4ad19c0697 100644 --- a/models/repo.go +++ b/models/repo.go @@ -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) }