diff --git a/history/operations.go b/history/operations.go index 7b94436..4388916 100644 --- a/history/operations.go +++ b/history/operations.go @@ -4,6 +4,8 @@ package history import ( "fmt" + "os" + "path/filepath" "sync" "github.com/bouncepaw/mycorrhiza/util" @@ -68,6 +70,7 @@ func (hop *HistoryOp) WithFilesRemoved(paths ...string) *HistoryOp { func (hop *HistoryOp) WithFilesRenamed(pairs map[string]string) *HistoryOp { for from, to := range pairs { if from != "" { + os.MkdirAll(filepath.Dir(to), 0777) hop.gitop(append([]string{"mv"}, from, to)...) } } diff --git a/metarrhiza b/metarrhiza index c21b477..2c0e431 160000 --- a/metarrhiza +++ b/metarrhiza @@ -1 +1 @@ -Subproject commit c21b47739bc149456acc205e2c5acfa4b9eeb9d7 +Subproject commit 2c0e43199ed28f7022a38463a0eec3af3ecb03c9