From 2b4dd6f137730abe48506affbe5c8f36a86772fb Mon Sep 17 00:00:00 2001 From: Daniel GarcĂ­a Date: Wed, 28 Apr 2021 21:46:20 +0200 Subject: Fix branch name --- build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build.rs') diff --git a/build.rs b/build.rs index bce425e8..39c16095 100644 --- a/build.rs +++ b/build.rs @@ -58,7 +58,7 @@ fn read_git_info() -> Result<(), std::io::Error> { // Combined version let version = if let Some(exact) = exact_tag { exact - } else if &branch != "master" { + } else if &branch != "main" && &branch != "master" { format!("{}-{} ({})", last_tag, rev_short, branch) } else { format!("{}-{}", last_tag, rev_short) -- cgit v1.2.3