Skip to content

Commit 667d5c9

Browse files
authored
Merge pull request #650 from Fab1n/runner-fix-absolute-url
2 parents a820ad0 + 02f2b94 commit 667d5c9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313

1414
## Master
1515

16+
## 3.21.2
17+
18+
- Fix Runner's path resolution to enable `--cwd` with relative paths [@Fab1n](https://github.com/Fab1n) - [#650](https://github.com/danger/swift/pull/650)
19+
1620
## 3.21.1
1721

1822
- Fix current directory url creation [@f-meloni][] - [#640](https://github.com/danger/swift/pull/640)

Sources/Runner/Commands/Runner.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ func runDanger(version dangerSwiftVersion: String, logger: Logger) throws {
162162
(cwdOptionIndex + 1) < CommandLine.arguments.count
163163
{
164164
let directoryURL = URL(fileURLWithPath: CommandLine.arguments[cwdOptionIndex + 1])
165-
proc.currentDirectoryURL = directoryURL
165+
proc.currentDirectoryURL = directoryURL.absoluteURL
166166
}
167167
proc.standardOutput = standardOutput
168168
proc.standardError = standardOutput

0 commit comments

Comments
 (0)