mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-04-26 13:34:45 +00:00
Merge pull request #1101 from richard-julien/master
Force worker directory to use slash. Needed to use Drone on windows
This commit is contained in:
commit
caf74d7122
2 changed files with 3 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -16,3 +16,5 @@ cli/cli
|
||||||
client/client
|
client/client
|
||||||
server/server
|
server/server
|
||||||
packaging/root/usr/local
|
packaging/root/usr/local
|
||||||
|
.idea/
|
||||||
|
*.iml
|
||||||
|
|
|
@ -118,7 +118,7 @@ func (d *Docker) Do(c context.Context, r *worker.Work) {
|
||||||
Commit: r.Commit.Sha,
|
Commit: r.Commit.Sha,
|
||||||
PR: r.Commit.PullRequest,
|
PR: r.Commit.PullRequest,
|
||||||
Private: r.Repo.Private,
|
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),
|
Depth: git.GitDepth(script.Git),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue