Skip to content

Commit 5dc3c7c

Browse files
authored
change path to gitRoot (#43)
1 parent 6a4fe0a commit 5dc3c7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Git/Git+Changeset.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public extension Git {
2323
currentBranch = "HEAD"
2424
}
2525

26-
let changes = try Shell.execOrFail("cd \(path) && git diff '\(baseBranch)'..'\(currentBranch)' --name-only")
26+
let changes = try Shell.execOrFail("cd \(gitRoot) && git diff '\(baseBranch)'..'\(currentBranch)' --name-only")
2727
let changesTrimmed = changes.trimmingCharacters(in: .whitespacesAndNewlines)
2828

2929
guard !changesTrimmed.isEmpty else {

0 commit comments

Comments
 (0)