From ac930fc23e8192d9405306056e05957bb3b76e26 Mon Sep 17 00:00:00 2001 From: NGPixel Date: Sat, 4 Feb 2023 16:09:41 -0500 Subject: [PATCH] fix: change simple-git import --- server/modules/storage/git/storage.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/modules/storage/git/storage.js b/server/modules/storage/git/storage.js index 14b805ce91..59194b4101 100644 --- a/server/modules/storage/git/storage.js +++ b/server/modules/storage/git/storage.js @@ -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') @@ -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 }