Skip to content

Commit 72e59cc

Browse files
committed
mkdir -p
1 parent c366d94 commit 72e59cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

middleware.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ function logOutgoing(req, res) {
4242
}
4343

4444
function factory (config) {
45+
fp.mkdir(path.join(__dirname, 'quarantine'), { recursive: true })
4546
return async function middleware (req, res, next) {
4647
const u = url.parse(req.url, true)
4748
if (!next) next = () => void(0)
@@ -133,6 +134,7 @@ function factory (config) {
133134
await tick()
134135

135136
// Move packfile and index into repo
137+
await fp.mkdir(path.join(gitdir, 'objects', 'pack'), { recursive: true })
136138
await fp.rename(path.join(dir, filepath), path.join(gitdir, 'objects', 'pack', filepath))
137139
await fp.rename(path.join(dir, filepath.replace(/\.pack$/, '.idx')), path.join(gitdir, 'objects', 'pack', filepath.replace(/\.pack$/, '.idx')))
138140
await fp.rmdir(path.join(dir))

0 commit comments

Comments
 (0)