Skip to content

Commit

Permalink
fix: Fix panic when no tag exists
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Mar 14, 2024
1 parent e7632e7 commit 12ec7e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func run(cmd *cobra.Command, args []string) error {
if err != nil {
return err
}
if head.Hash() != latest.Hash() {
if latest == nil || head.Hash() != latest.Hash() {
previous = latest
latest = head
}
Expand Down

0 comments on commit 12ec7e3

Please sign in to comment.