File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
server/modules/storage/git Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11const path = require ( 'path' )
2- const sgit = require ( 'simple-git/promise ' )
2+ const sgit = require ( 'simple-git' )
33const fs = require ( 'fs-extra' )
44const _ = require ( 'lodash' )
55const 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 }
You can’t perform that action at this time.
0 commit comments