File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
plugins/official/esengine-behavior-tree-editor Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1010 "category" : " Tool" ,
1111 "repository" : {
1212 "type" : " git" ,
13- "url" : " https://github.com/esengine/ecs-framework"
13+ "url" : " https://github.com/esengine/ecs-framework" ,
14+ "branch" : " refactor/extract-behavior-tree-editor"
1415 },
1516 "distribution" : {
1617 "type" : " cdn" ,
Original file line number Diff line number Diff line change 7474
7575 // 6. 克隆仓库
7676 const repoUrl = manifest . repository . url ;
77+ const repoBranch = manifest . repository . branch || 'master' ;
7778 const cloneDir = path . join ( TEMP_DIR , 'repo' ) ;
7879
79- execSync ( `git clone --depth 1 ${ repoUrl } "${ cloneDir } "` , {
80+ console . log ( ` Repository: ${ repoUrl } ` ) ;
81+ console . log ( ` Branch: ${ repoBranch } ` ) ;
82+
83+ execSync ( `git clone --depth 1 --branch ${ repoBranch } ${ repoUrl } "${ cloneDir } "` , {
8084 stdio : 'inherit' ,
8185 cwd : TEMP_DIR
8286 } ) ;
You can’t perform that action at this time.
0 commit comments