We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a4fe0a commit 5dc3c7cCopy full SHA for 5dc3c7c
Sources/Git/Git+Changeset.swift
@@ -23,7 +23,7 @@ public extension Git {
23
currentBranch = "HEAD"
24
}
25
26
- let changes = try Shell.execOrFail("cd \(path) && git diff '\(baseBranch)'..'\(currentBranch)' --name-only")
+ let changes = try Shell.execOrFail("cd \(gitRoot) && git diff '\(baseBranch)'..'\(currentBranch)' --name-only")
27
let changesTrimmed = changes.trimmingCharacters(in: .whitespacesAndNewlines)
28
29
guard !changesTrimmed.isEmpty else {
0 commit comments