Skip to content

Commit

Permalink
fix: change simple-git import
Browse files Browse the repository at this point in the history
  • Loading branch information
NGPixel committed Feb 4, 2023
1 parent 2e3bdb6 commit ac930fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/modules/storage/git/storage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const path = require('path')
const sgit = require('simple-git/promise')
const sgit = require('simple-git')
const fs = require('fs-extra')
const _ = require('lodash')
const stream = require('stream')
Expand Down Expand Up @@ -160,8 +160,8 @@ module.exports = {
fNames.old = fMatch[1]
fNames.new = fMatch[4]
} else {
fNames.old = (fMatch[1]+fMatch[2]+fMatch[4]).replace('//', '/'),
fNames.new = (fMatch[1]+fMatch[3]+fMatch[4]).replace('//', '/')
fNames.old = (fMatch[1] + fMatch[2] + fMatch[4]).replace('//', '/'),
fNames.new = (fMatch[1] + fMatch[3] + fMatch[4]).replace('//', '/')
}
const fPath = path.join(this.repoPath, fNames.new)
let fStats = { size: 0 }
Expand Down

0 comments on commit ac930fc

Please sign in to comment.