refactor(recipe): remove Dir method on old struct

This commit is contained in:
2024-07-08 11:48:53 +02:00
parent eb62e0ecc3
commit ca1db33e97
3 changed files with 4 additions and 9 deletions

View File

@ -201,13 +201,13 @@ likely to change.
log.Infof("dry run: not syncing label %s for recipe %s", nextTag, recipe.Name)
}
isClean, err := gitPkg.IsClean(recipe.Dir())
isClean, err := gitPkg.IsClean(r.Dir)
if err != nil {
log.Fatal(err)
}
if !isClean {
log.Infof("%s currently has these unstaged changes 👇", recipe.Name)
if err := gitPkg.DiffUnstaged(recipe.Dir()); err != nil {
if err := gitPkg.DiffUnstaged(r.Dir); err != nil {
log.Fatal(err)
}
}