File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,12 @@ and **Merged pull requests**. Critical items to know are:
14
14
The versions coincide with releases on pip. Only major versions will be released as tags on Github.
15
15
16
16
## [ 0.0.x] ( https://github.com/oras-project/oras-py/tree/main ) (0.0.x)
17
- - Ensure insecure is passed to provider class (0.1.20)
18
- - patch fix for blob upload Windows, closes issue [ 93] ( https://github.com/oras-project/oras-py/issues/93 ) (0.1.19)
19
- - patch fix for empty manifest config on Windows, closes issue [ 90] ( https://github.com/oras-project/oras-py/issues/90 ) (0.1.18)
20
- - patch fix to correct session url pattern, closes issue [ 78] ( https://github.com/oras-project/oras-py/issues/78 ) (0.1.17)
21
- - add support for tag deletion and retry decorators (0.1.16)
17
+ - Allow to pull exactly to PWD (0.1.21)
18
+ - Ensure insecure is passed to provider class (0.1.20)
19
+ - patch fix for blob upload Windows, closes issue [ 93] ( https://github.com/oras-project/oras-py/issues/93 ) (0.1.19)
20
+ - patch fix for empty manifest config on Windows, closes issue [ 90] ( https://github.com/oras-project/oras-py/issues/90 ) (0.1.18)
21
+ - patch fix to correct session url pattern, closes issue [ 78] ( https://github.com/oras-project/oras-py/issues/78 ) (0.1.17)
22
+ - add support for tag deletion and retry decorators (0.1.16)
22
23
- bugfix that pagination sets upper limit of 10K (0.1.15)
23
24
- pagination for tags (and general function for pagination) (0.1.14)
24
25
- expose upload_blob function to be consistent (0.1.13)
Original file line number Diff line number Diff line change @@ -43,6 +43,9 @@ def sanitize_path(expected_dir, path):
43
43
It can be directly there or a child, but not outside it.
44
44
We raise an error if it does not - this should not happen
45
45
"""
46
+ # It's OK to pull to PWD exactly
47
+ if os .path .abspath (expected_dir ) == os .path .abspath (path ):
48
+ return os .path .abspath (expected_dir )
46
49
base_dir = pathlib .Path (expected_dir )
47
50
test_path = (base_dir / path ).resolve ()
48
51
if not base_dir .resolve () in test_path .resolve ().parents :
Original file line number Diff line number Diff line change 2
2
__copyright__ = "Copyright The ORAS Authors."
3
3
__license__ = "Apache-2.0"
4
4
5
- __version__ = "0.1.20 "
5
+ __version__ = "0.1.21 "
6
6
AUTHOR = "Vanessa Sochat"
7
7
EMAIL = "vsoch@users.noreply.github.com"
8
8
NAME = "oras"
You can’t perform that action at this time.
0 commit comments