-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--as-path <PATH> option skips empty string #1135
Comments
Thanks @F3-L1x for opening this issue! Can you please write how you did run the CLI command? |
Wow, what a fast reply.^^ I tried it different ways:
|
First, am I right that your original intend is to run Moreover, I think that in fact there shouldn't be a use-case where you need to use an empty Still, digging a bit into details: About 3: This is treated by clap like no |
Correct handling of paths starting with |
Yes that's what I was trying to do.
You mean, it should be automatically saved as a relative-path, when using Thanks for you tip with the:
That did the trick. (: Thank you for your super quick help and I'll try your fix soon. :) 👍 Edit:
It looks like, this has sth. to do with, how powershell handles parameters/arguments (probably discarding empty strings and gobbling the next available argument/option). I get a different output from cmd and msys-bash:
|
Exactly. This is also the current behavior if you backup a relative path without leading If you want to backup an absolute path, you can simply specify the full path. |
At first - excuse me please, for responding so late (and accidentally closing the issue prematurely). I've multiple points to add: tl;drI'm (currently) fine with using source (cli-argument or config-value): 1. introduction1.1. unclear problem descriptionI recently read through the discussion and noticed, I probably hadn't made the distinction between the source-path and the paths inside the repository clear enough. 1.2. test descriptionI tested the old 0.7 vs. the current 0.95 with permutations of values (existing / non-existing & absolute / relative paths) for source and as-path (for cli-options and config-entries, including the absence of each or both). 2. comment from 25.04.242.1. cli-issue (powershell)The powershell-issue mentioned previously, looks like to be fixed by newer pwsh versions (which wasn't installed with windows 10). 2.2. ERROR: "[...]a value is required for '--as-path[...]"Under linux (with bash and v0.7 & v0.95): Specifying 3. WARNING: "[...]ignoring error - reading parent snapshot: TreeStackEmptyError"For v0.95 the usage of 4. clarity/readability of warnings/errorsSome messages might be hard to understand or could probably be shorter for (especially non-dev) users. 4.1. examples:
|
Hello wonderful people,
at first, I'm so grateful for this great project. :3
Just a minor thing.
I noticed, that using the '--as-path' cli-option (when creating a backup) doesn't recognize an empty path, while the configuration-option does.
It would be nice, if both had this ability.
Thank you for your time. (:
The text was updated successfully, but these errors were encountered: