Skip to content

Commit b2b6c73

Browse files
authored
[IGNORE] fix previuos tag script to account for new plugins (#389)
Signed-off-by: Gabriel Bernal <gbernal@redhat.com>
1 parent f41a0b2 commit b2b6c73

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

scripts/release/changelog.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ func getPreviousTag(pluginName string) string {
2727
pluginName = strings.ToLower(pluginName)
2828
data, err := exec.Command("git", "describe", "--tags", "--abbrev=0", "--match", fmt.Sprintf("%s/v*", pluginName)).Output()
2929
if err != nil {
30+
if exitError, ok := err.(*exec.ExitError); ok {
31+
if exitError.ExitCode() == 128 {
32+
return ""
33+
}
34+
}
35+
3036
logrus.Fatal(err)
3137
}
3238
return string(bytes.ReplaceAll(data, []byte("\n"), []byte("")))

0 commit comments

Comments
 (0)