Skip to content

Commit

Permalink
fix(yay): reset to origin/HEAD for clean_menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Jguer committed Apr 5, 2023
1 parent 5b5617c commit 677cc07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/menus/clean_menu.go
Expand Up @@ -59,7 +59,7 @@ func CleanFn(ctx context.Context, config *settings.Configuration, w io.Writer, p
dir := pkgbuildDirsByBase[base]
text.OperationInfoln(gotext.Get("Deleting (%d/%d): %s", i+1, len(toClean), text.Cyan(dir)))

if err := config.Runtime.CmdBuilder.Show(config.Runtime.CmdBuilder.BuildGitCmd(ctx, dir, "reset", "--hard", "HEAD")); err != nil {
if err := config.Runtime.CmdBuilder.Show(config.Runtime.CmdBuilder.BuildGitCmd(ctx, dir, "reset", "--hard", "origin/HEAD")); err != nil {
text.Warnln(gotext.Get("Unable to clean:"), dir)

return err
Expand Down

0 comments on commit 677cc07

Please sign in to comment.