commit: | 44aa26733d447f2474d8a8ece35f997ffbfda6aa |
author: | Trevor Bentley |
committer: | Trevor Bentley |
date: | Thu Jan 16 01:33:01 2025 +0100 |
parents: | c86f62b795028303291135566dd6e1eeb4c83236 |
diff --git a/src/settings.rs b/src/settings.rs line changes: +4/-1 index a2e970b..02ec29e --- a/src/settings.rs +++ b/src/settings.rs
@@ -281,7 +281,10 @@ impl GitsySettingsOutputs { let asset_path = substitute_path_vars(&tmpl_path, parsed_repo, Some(self)); let full_path = match repo { Some(repo) => { - let mut full_path = repo.workdir().map(|p| p.to_owned()).unwrap_or_default(); + let mut full_path = match repo.workdir() { + Some(d) => d.to_path_buf(), // workdir for full checkouts + _ => repo.path().to_path_buf(), // path for bare repos + }; full_path.push(asset_path); full_path },