message: Omit git branch name in the Hermes version as not all branch names are valid build metadata as per semver
diff: @@ -20,8 +20,6 @@ fn version() -> String {
  if let Some(git) = GitHandle::new() {
  println!("cargo:rustc-rerun-if-changed=.git/HEAD");
  vers.push('+');
  - vers.push_str(&git.branch());
  - vers.push('-');
  vers.push_str(&git.last_commit_hash());
  if git.is_dirty() {
  vers.push_str("-dirty");
  @@ -54,24 +52,6 @@ mod git {
  }
  }
  - // Returns the current branch as a string - if the branch name has a '/' returns part after
  - // the last '/'
  - pub fn branch(&self) -> String {
  - let branch = Self::command(&["rev-parse", "--abbrev-ref", "HEAD"]);
  - let branch_str = String::from_utf8_lossy(&branch.stdout);
  - branch_str
  - .contains('/')
  - .then(|| {
  - branch_str
  - .split('/')
  - .collect::<Vec<&str>>()
  - .last()
  - .unwrap()
  - .to_string()
  - })
  - .unwrap_or_else(|| branch_str.into())
  - }
  -
  // Returns the short hash of the last git commit
  pub fn last_commit_hash(&self) -> String {
  let commit = Self::command(&["rev-parse", "--short", "HEAD"]);
  