Skip to content

Commit efaf048

Browse files
committed
Fix repo prompt CI regressions
1 parent bc3d3be commit efaf048

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

macos/Sources/Features/Terminal/RepoPromptSplitButton.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if os(macOS)
12
import AppKit
23

34
enum RepoPromptSplitButton {
@@ -127,3 +128,4 @@ enum RepoPromptSplitButton {
127128
return item
128129
}
129130
}
131+
#endif

macos/Sources/Features/Terminal/TerminalRepoPrompt.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ enum TerminalRepoPrompt {
269269
)
270270
}
271271

272-
if !hasUpstream || aheadCount > 0 {
272+
if trackingKnown && (!hasUpstream || aheadCount > 0) {
273273
return .init(
274274
action: action,
275275
isAvailable: false,

0 commit comments

Comments
 (0)