Skip to content

Commit ac930fc

Browse files
committed
fix: change simple-git import
1 parent 2e3bdb6 commit ac930fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/modules/storage/git/storage.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const path = require('path')
2-
const sgit = require('simple-git/promise')
2+
const sgit = require('simple-git')
33
const fs = require('fs-extra')
44
const _ = require('lodash')
55
const stream = require('stream')
@@ -160,8 +160,8 @@ module.exports = {
160160
fNames.old = fMatch[1]
161161
fNames.new = fMatch[4]
162162
} else {
163-
fNames.old = (fMatch[1]+fMatch[2]+fMatch[4]).replace('//', '/'),
164-
fNames.new = (fMatch[1]+fMatch[3]+fMatch[4]).replace('//', '/')
163+
fNames.old = (fMatch[1] + fMatch[2] + fMatch[4]).replace('//', '/'),
164+
fNames.new = (fMatch[1] + fMatch[3] + fMatch[4]).replace('//', '/')
165165
}
166166
const fPath = path.join(this.repoPath, fNames.new)
167167
let fStats = { size: 0 }

0 commit comments

Comments
 (0)