File tree Expand file tree Collapse file tree 4 files changed +11
-2
lines changed Expand file tree Collapse file tree 4 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 38
38
python3 -m pip install --ignore-installed --verbose pip setuptools
39
39
python3 -m pip install cmind
40
40
python3 -m cmind
41
+ # cmx pull repo mlcommons@ck --dir=cm4mlops/cm4mlops
42
+ cmx pull repo mlcommons@ck --dir2=cm4mlops
41
43
- name : Test
42
44
run : |
43
45
python tests/test_cm.py
Original file line number Diff line number Diff line change 1
- ## CMX V4.1.3.1
1
+ ## CMX V4.1.4
2
2
- fixed minor bug for "cmx --version"
3
+ - added "cmx pull repo --dir2" to support "dir/dir" directories
3
4
4
5
## CMX V4.1.3
5
6
- fixed a bug with "cmx -log" (#1410 )
Original file line number Diff line number Diff line change 9
9
# White paper: https://arxiv.org/abs/2406.16791
10
10
# Project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md
11
11
12
- __version__ = "4.1.3.1 "
12
+ __version__ = "4.1.4 "
13
13
14
14
from cmind .core import access
15
15
from cmind .core import x
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ def pull(self, i):
43
43
(checkout) (str): Git checkout
44
44
(checkout_only) (bool): only checkout existing repo
45
45
(dir) (str): use repository in this directory
46
+ (dir2) (str): use repository in this "directory/directory"
46
47
(depth) (int): Git depth
47
48
(desc) (str): brief repository description (1 line)
48
49
(prefix) (str): extra directory to keep CM artifacts
@@ -75,6 +76,11 @@ def pull(self, i):
75
76
checkout_only = i .get ('checkout_only' , False )
76
77
skip_zip_parent_dir = i .get ('skip_zip_parent_dir' , False )
77
78
79
+ dir2 = i .get ('dir2' , '' )
80
+ if dir2 != '' :
81
+ i ['dir' ] = dir2 + '/' + dir2
82
+ del (i ['dir2' ])
83
+
78
84
# Check alias is URL
79
85
if url == '' and (alias .startswith ('https://' ) or alias .startswith ('git@' )):
80
86
url = alias
You can’t perform that action at this time.
0 commit comments