fix: simplify repository opening logic in append_date_and_git_hash function
Some checks failed
Continuous Integration / Build and Test on ubuntu-latest (push) Failing after 2m17s

This commit is contained in:
2025-09-20 12:01:22 +02:00
parent e06752f625
commit d01d2ef3e4

View File

@@ -104,7 +104,7 @@ fn append_date_and_git_hash(output_path: &mut Option<PathBuf>, config: &Config)
if config.append_git_hash {
for dir in &config.directory {
match Repository::open(&dir) {
match Repository::open(dir) {
Ok(repo) => {
let head = repo.head().context("Failed to get repository HEAD")?;
if let Some(oid) = head.target() {