Skip to content

Commit 8fcb681

Browse files
committed
Merge pull request #201 from mmolnar/master
Resolve the to real paths when calculating relative path for file upload
2 parents bc92fe3 + 42edd24 commit 8fcb681

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/transports/ScpTransport.coffee

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ class ScpTransport
1313
@connection = null
1414

1515
upload: (localFilePath, callback) ->
16+
fs = require "fs" if not fs
1617
targetFilePath = path.join(@settings.target,
17-
path.relative(@projectPath, localFilePath))
18+
path.relative(fs.realpathSync(@projectPath), fs.realpathSync(localFilePath)))
1819
.replace(/\\/g, "/")
1920

2021
errorHandler = (err) =>

0 commit comments

Comments
 (0)