update modeperm for directory creation on clone

This commit is contained in:
Tai Groot
2024-09-16 12:11:38 -07:00
committed by Tai Groot
parent 417cf943fa
commit 991985ab4e

View File

@@ -52,7 +52,7 @@ var (
log.Printf("attempting clone: %s\n", repo.Path) log.Printf("attempting clone: %s\n", repo.Path)
parentPath := filepath.Dir(repo.Path) parentPath := filepath.Dir(repo.Path)
if _, err := os.Stat(parentPath); err != nil { if _, err := os.Stat(parentPath); err != nil {
os.MkdirAll(parentPath, os.ModeDir) os.MkdirAll(parentPath, os.ModeDir|os.ModePerm)
} }
_, err = git.PlainClone(repo.Path, false, &git.CloneOptions{ _, err = git.PlainClone(repo.Path, false, &git.CloneOptions{
URL: repo.Remote, URL: repo.Remote,