Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
ac930fc2
Unverified
Commit
ac930fc2
authored
Feb 04, 2023
by
NGPixel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: change simple-git import
parent
2e3bdb66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
storage.js
server/modules/storage/git/storage.js
+3
-3
No files found.
server/modules/storage/git/storage.js
View file @
ac930fc2
const
path
=
require
(
'path'
)
const
path
=
require
(
'path'
)
const
sgit
=
require
(
'simple-git
/promise
'
)
const
sgit
=
require
(
'simple-git'
)
const
fs
=
require
(
'fs-extra'
)
const
fs
=
require
(
'fs-extra'
)
const
_
=
require
(
'lodash'
)
const
_
=
require
(
'lodash'
)
const
stream
=
require
(
'stream'
)
const
stream
=
require
(
'stream'
)
...
@@ -160,8 +160,8 @@ module.exports = {
...
@@ -160,8 +160,8 @@ module.exports = {
fNames
.
old
=
fMatch
[
1
]
fNames
.
old
=
fMatch
[
1
]
fNames
.
new
=
fMatch
[
4
]
fNames
.
new
=
fMatch
[
4
]
}
else
{
}
else
{
fNames
.
old
=
(
fMatch
[
1
]
+
fMatch
[
2
]
+
fMatch
[
4
]).
replace
(
'//'
,
'/'
),
fNames
.
old
=
(
fMatch
[
1
]
+
fMatch
[
2
]
+
fMatch
[
4
]).
replace
(
'//'
,
'/'
),
fNames
.
new
=
(
fMatch
[
1
]
+
fMatch
[
3
]
+
fMatch
[
4
]).
replace
(
'//'
,
'/'
)
fNames
.
new
=
(
fMatch
[
1
]
+
fMatch
[
3
]
+
fMatch
[
4
]).
replace
(
'//'
,
'/'
)
}
}
const
fPath
=
path
.
join
(
this
.
repoPath
,
fNames
.
new
)
const
fPath
=
path
.
join
(
this
.
repoPath
,
fNames
.
new
)
let
fStats
=
{
size
:
0
}
let
fStats
=
{
size
:
0
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment