diff --git a/.gitignore b/.gitignore index 6c837086d..af9770b10 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,5 @@ cli/cli client/client server/server packaging/root/usr/local +.idea/ +*.iml 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), }