Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d7ac040

Browse files
committed
fix: Don't force version bump if no commit available
1 parent 72db5a3 commit d7ac040

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/lib.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pub fn version_bump_since_tag(path: &str, tag: &str) -> CommitType {
5959
let tag = walker.map(|c| repo.find_commit(c).expect("No commit found"))
6060
.map(|c| format_commit(c))
6161
.map(|c| commit_analyzer::analyze_single(&c).expect("Analyzing commit failed"))
62-
.max().unwrap();
62+
.max().unwrap_or(CommitType::Unknown);
6363

6464
tag
6565
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /