Skip to content

Commit

Permalink
Revert "fix: Guard update to v3 (#164)"
Browse files Browse the repository at this point in the history
This reverts commit 0909543.
  • Loading branch information
gabyx committed Apr 21, 2024
1 parent 0909543 commit d594235
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions githooks/cmd/installer/installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import (
strs "github.com/gabyx/githooks/githooks/strings"
"github.com/gabyx/githooks/githooks/updates"
"github.com/gabyx/githooks/githooks/updates/download"
"github.com/hashicorp/go-version"

"github.com/mitchellh/go-homedir"
"github.com/spf13/cobra"
Expand Down Expand Up @@ -449,13 +448,6 @@ func runInstallDispatched(
if doUpdate {
tag = status.UpdateTag
commit = status.UpdateCommitSHA

maxVersion, _ := version.NewSemver("3.0.0")
if status.UpdateVersion.GreaterThanOrEqual(maxVersion) {
return false, cm.Error("Cannot update to version v3 and greater.\n" +
"To much changed. Uninstall Githooks completely and reinstall the new version.")
}

} else {
tag = status.LocalTag
commit = status.LocalCommitSHA
Expand Down

0 comments on commit d594235

Please sign in to comment.