Skip to content

Commit

Permalink
Use "modified" rather than "dirty" for uncommitted changes in build m…
Browse files Browse the repository at this point in the history
…etadata
  • Loading branch information
teor2345 committed Jun 19, 2023
1 parent d57d5f4 commit dc116db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zebrad/src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ pub fn build_version() -> Version {
return fallback_version;
};

// `git describe` uses "dirty" for uncommitted changes,
// but users won't understand what that means.
let vergen_git_describe = vergen_git_describe.replace("dirty", "modified");

// Split using "git describe" separators.
let mut vergen_git_describe = vergen_git_describe.split('-').peekable();

Expand Down

0 comments on commit dc116db

Please sign in to comment.