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