use os.Mkdir()
This commit is contained in:
parent
a8d32f0e16
commit
e14fde1546
|
@ -1,11 +1,11 @@
|
|||
package repolist
|
||||
|
||||
import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"go.wit.com/lib/gui/repostatus"
|
||||
"go.wit.com/lib/gui/shell"
|
||||
"go.wit.com/log"
|
||||
)
|
||||
|
||||
|
@ -98,7 +98,7 @@ func (r *RepoList) MakePatchset(setdir string) bool {
|
|||
}
|
||||
|
||||
repodir := filepath.Join(setdir, repo.GetGoPath())
|
||||
shell.Mkdir(repodir)
|
||||
os.MkdirAll(repodir, os.ModeDir)
|
||||
// git format-patch branch1..branch2
|
||||
gitcmd := []string{"git", "format-patch", "-o", repodir, develn + ".." + usern}
|
||||
log.Info("Run:", gitcmd)
|
||||
|
|
Loading…
Reference in New Issue