From afc57754219152549f7a52f65792255b46166919 Mon Sep 17 00:00:00 2001 From: Zack Bloom Date: Fri, 27 Jan 2017 01:24:22 -0500 Subject: [PATCH] Fix absolute base tags --- src/deploy.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/deploy.go b/src/deploy.go index 0484a9f..e1328e9 100644 --- a/src/deploy.go +++ b/src/deploy.go @@ -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, "../") {