From a0d20db7118301673ae49498e8f41cea58f7071c Mon Sep 17 00:00:00 2001 From: Trevor Bentley Date: Wed, 15 Jan 2025 00:01:59 +0100 Subject: [PATCH] use correct work dir for per-repo asset files --- src/settings.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settings.rs b/src/settings.rs index 7af7d46..a2e970b 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -281,7 +281,7 @@ 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.path().to_owned(); + let mut full_path = repo.workdir().map(|p| p.to_owned()).unwrap_or_default(); full_path.push(asset_path); full_path },