Skip to content

Commit f688215

Browse files
fix: fix error when running outside of git repository
1 parent f6f6c9a commit f688215

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/run_environment/local/provider.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,10 @@ impl RunEnvironmentProvider for LocalProvider {
300300
})
301301
}
302302

303+
fn get_commit_hash(&self, _repository_root_path: &str) -> Result<String> {
304+
Ok(self.ref_.clone())
305+
}
306+
303307
/// Local runs don't need run-index because each invocation gets a fresh `run_id`.
304308
fn build_run_part_suffix(
305309
&self,

0 commit comments

Comments
 (0)