Skip to content

Commit

Permalink
Fix absolute base tags
Browse files Browse the repository at this point in the history
  • Loading branch information
zackbloom committed Jan 27, 2017
1 parent 8f8e54f commit afc5775
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -536,8 +536,13 @@ func Deploy(options Options) {
local = joinPath(options.Root, path)
remote = joinPath(options.Dest, path)
} else {
local = joinPath(options.Root, rel, base, path)
remote = joinPath(options.Dest, rel, base, path)
if strings.HasPrefix(base, "/") {
local = joinPath(options.Root, base, path)
remote = joinPath(options.Dest, base, path)
} else {
local = joinPath(options.Root, rel, base, path)
remote = joinPath(options.Dest, rel, base, path)
}
}

for strings.HasPrefix(remote, "../") {
Expand Down

0 comments on commit afc5775

Please sign in to comment.