Commit ece0d80
committed
cmd/git(fix[stash.push]): Handle str paths in GitStashCmd.push
why: Plain str paths were silently ignored when building required_flags.
Only list and pathlib.Path were handled, so Git.stash.push(path="file.txt")
would not limit the stash to that path.
what:
- Change elif isinstance(path, pathlib.Path) to elif path is not None
- Remove unnecessary .absolute() conversion that broke relative paths
- Now handles str, Path, and list consistently1 parent 03b124c commit ece0d80
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4858 | 4858 | | |
4859 | 4859 | | |
4860 | 4860 | | |
4861 | | - | |
4862 | | - | |
4863 | | - | |
| 4861 | + | |
| 4862 | + | |
| 4863 | + | |
4864 | 4864 | | |
4865 | 4865 | | |
4866 | 4866 | | |
| |||
0 commit comments