Skip to content
This repository was archived by the owner on Jun 12, 2022. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions lib/utils.coffee
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
path = require 'path'
fs = require 'fs'

normalizePath = (repoPath) ->
normPath = path.normalize repoPath
Expand All @@ -9,9 +10,9 @@ normalizePath = (repoPath) ->
# For now just strip away the /private part.
# Using the fs.realPath function to avoid this issue isn't such a good
# idea because it tries to access that path and in case it's not
# existing path an error gets thrown + it's slow due to fs access.
# existing path an error gets thrown
normPath = normPath.replace(/^\/private/, '')
return normPath.replace(/[\\\/]$/, '')
return fs.realpathSync(normPath.replace(/[\\\/]$/, ''))

getRootDirectoryStatus = (repo) ->
promise = Promise.resolve()
Expand Down