Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions tools/rebasehelpers/commitchecker/commitchecker.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@ func main() {
// TODO: ...along with subtree merges.
nonbumpCommits := []util.Commit{}
for _, commit := range commits {
var lastDescriptionLine string
if descriptionLen := len(commit.Description); descriptionLen > 0 {
lastDescriptionLine = commit.Description[descriptionLen-1]
}
if !strings.HasPrefix(commit.Summary, "bump(") && !strings.HasPrefix(lastDescriptionLine, "git-subtree-split:") {
if !strings.HasPrefix(commit.Summary, "bump") {
nonbumpCommits = append(nonbumpCommits, commit)
}
}
Expand Down
4 changes: 2 additions & 2 deletions tools/rebasehelpers/commitchecker/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func ValidateUpstreamCommitsWithoutGodepsChanges(commits []util.Commit) error {
}
}
if len(problemCommits) > 0 {
label := "The following commits contain Godeps changes but aren't declared as UPSTREAM"
label := "The following commits contain vendor changes but aren't declared as UPSTREAM or bump(*) commits"
msg := renderGodepFilesError(label, problemCommits, RenderOnlyGodepsFiles)
return fmt.Errorf(msg)
}
Expand Down Expand Up @@ -117,7 +117,7 @@ func ValidateUpstreamCommitModifiesOnlyGodeps(commits []util.Commit) error {
}
}
if len(problemCommits) > 0 {
label := "The following UPSTREAM commits modify files outside Godeps"
label := "The following UPSTREAM commits modify files outside vendor"
msg := renderGodepFilesError(label, problemCommits, RenderAllFiles)
return fmt.Errorf(msg)
}
Expand Down