Skip to content

Commit 68ff99f

Browse files
committed
fix scp for #45
1 parent 5dd2762 commit 68ff99f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/transports/ScpTransport.coffee

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,12 @@ class ScpTransport
7070
callback?()
7171

7272
fetchFileTree: (localPath, callback) ->
73-
targetPath = path.join(@settings.target,
73+
{isIgnore, target} = @settings
74+
75+
targetPath = path.join(target,
7476
path.relative(atom.project.getPath(), localPath))
7577
.replace(/\\/g, "/")
76-
{isIgnore} = @settings
78+
7779

7880
@_getConnection (err, c) ->
7981
return callback err if err
@@ -85,7 +87,7 @@ class ScpTransport
8587
result.on "data", (data) -> buf += data.toString()
8688
result.on "end", ->
8789
files = buf.split("\n").filter((f) ->
88-
return f and not isIgnore(f, targetPath))
90+
return f and not isIgnore(f, target))
8991

9092
callback null, files
9193

0 commit comments

Comments
 (0)