Skip to content

Commit

Permalink
fix: build error outside git (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
reubeno authored Jul 23, 2024
1 parent e512b8d commit 8023680
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions brush-shell/src/productinfo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ pub const PRODUCT_DISPLAY_URI: &str = if !PRODUCT_HOMEPAGE.is_empty() {
pub const PRODUCT_VERSION: &str = env!("CARGO_PKG_VERSION");

/// Info regarding the specific version of sources used to build this product.
pub const PRODUCT_GIT_VERSION: &str =
git_version::git_version!(args = ["--always", "--dirty=-modified", "--match", ""]);
pub const PRODUCT_GIT_VERSION: &str = git_version::git_version!(
prefix = "git:",
cargo_prefix = "cargo:",
fallback = "unknown:",
args = ["--always", "--dirty=-modified", "--match", ""]
);

pub(crate) fn get_product_display_str() -> String {
std::format!(
Expand Down

0 comments on commit 8023680

Please sign in to comment.