Skip to content

Commit

Permalink
Need to stage removals in git also
Browse files Browse the repository at this point in the history
  • Loading branch information
cmmarslender committed Jul 17, 2024
1 parent cbc9e2f commit 1b5e4dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/repo/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ 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))
_, err = w.Add(fileinfo.RepoPath)
}

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

0 comments on commit 1b5e4dd

Please sign in to comment.