Skip to content

Commit

Permalink
subdir2
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangnanscu committed Feb 14, 2024
1 parent cc651c7 commit 6cff23f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xiangnanscu/degit",
"version": "2.17.0",
"version": "2.18.0",
"engines": {
"node": ">=8.0.0"
},
Expand Down
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ class Degit extends EventEmitter {
this.message = opts.message
this.public = opts.public
this.repo = parse(src);
if (!this.repo.subdir && opts.subdir) {
console.log(this.repo, opts.subdir)
if (opts.subdir) {
this.repo.subdir = opts.subdir
}
this.mode = opts.mode || this.repo.mode;
Expand Down

0 comments on commit 6cff23f

Please sign in to comment.