aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2025-11-12 09:48:14 +0100
committerGitHub Enterprise <[email protected]>2025-11-12 09:48:14 +0100
commitf394837df4d29cab404cb62faca6a0659ce461d9 (patch)
treee17ee587a32074e67ae639db483e4cede85675ca
parentcontrol cache upload (#646) (diff)
downloadzen-f394837df4d29cab404cb62faca6a0659ce461d9.tar.xz
zen-f394837df4d29cab404cb62faca6a0659ce461d9.zip
remove local-directory prefix for wildcards (#647)
-rw-r--r--CHANGELOG.md1
-rw-r--r--src/zen/cmds/builds_cmd.cpp5
2 files changed, 6 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 93958cacb..8ac185a26 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -26,6 +26,7 @@
- Improvement: Compress partial file chunks inside blocks if appropriate
- Bugfix: If we fail to finalize a build part during `zen builds upload` due to request of upload of pre-existing blobs, fail the upload after retry attempts
- Bugfix: Don't display "Validating" progress title during download if validation is disabled
+- Bugfix: `zen builds` wildcard options with leading local directory prefixes `./` or `.\` will be trimmed to exclude the local directory prefix
## 5.7.8
- Rollback to 5.7.6
diff --git a/src/zen/cmds/builds_cmd.cpp b/src/zen/cmds/builds_cmd.cpp
index 16b623453..14686a173 100644
--- a/src/zen/cmds/builds_cmd.cpp
+++ b/src/zen/cmds/builds_cmd.cpp
@@ -3174,6 +3174,11 @@ BuildsCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv)
}
}
+ if (CleanWildcard.starts_with("./") || CleanWildcard.starts_with(".\\"))
+ {
+ CleanWildcard = CleanWildcard.substr(2);
+ }
+
Wildcards.emplace_back(std::move(CleanWildcard));
}
return true;