From 420131d3fa9f233978dc9fcbecbb14bb7f272a9a Mon Sep 17 00:00:00 2001 From: Richard Julien Date: Sun, 19 Jul 2015 01:19:32 +0200 Subject: [PATCH] Force worker directory to use slash. Needed to use Drone on windows --- server/worker/docker/docker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/worker/docker/docker.go b/server/worker/docker/docker.go index b2eda0c74..b428dc8ff 100644 --- a/server/worker/docker/docker.go +++ b/server/worker/docker/docker.go @@ -118,7 +118,7 @@ func (d *Docker) Do(c context.Context, r *worker.Work) { Commit: r.Commit.Sha, PR: r.Commit.PullRequest, Private: r.Repo.Private, - Dir: filepath.Join("/var/cache/drone/src", git.GitPath(script.Git, path)), + Dir: filepath.ToSlash(filepath.Join("/var/cache/drone/src", git.GitPath(script.Git, path))), Depth: git.GitDepth(script.Git), }