Skip to content

Commit

Permalink
Need to stage removals in git also (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmmarslender authored Jul 17, 2024
1 parent cbc9e2f commit e54710a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/repo/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ func (c *Content) CheckFiles(repoName string, files []string, cfg *config.Config

for _, form := range fileinfo.AlternatePaths {
// Ignoring errors since these alternate file names may not exist
_ = os.Remove(fmt.Sprintf("%s/%s", repoDir(repoName), form))
removePath := fmt.Sprintf("%s/%s", repoDir(repoName), form)
_ = os.Remove(removePath)
_, _ = w.Add(removePath)
}

tmplContent, err := os.ReadFile(path.Join(c.templates, fileinfo.TemplateName))
Expand Down

0 comments on commit e54710a

Please sign in to comment.