Skip to content

Commit fc8a05b

Browse files
authored
feat: support apple git in scan diagnostic (#7740)
### Description macOS can have either Apple git or regular git depending on source. This PR adds support for the Apple git output format. Closes TURBO-2646
1 parent ada6815 commit fc8a05b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

crates/turborepo-lib/src/diagnostics.rs

+7
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,13 @@ impl Diagnostic for GitDaemonDiagnostic {
189189
return;
190190
};
191191

192+
// attempt to split out the apple git suffix
193+
let version = if let Some((version, _)) = version.split_once(" (Apple") {
194+
version
195+
} else {
196+
version
197+
};
198+
192199
let Ok(version) = semver::Version::parse(version) else {
193200
chan.failed("Failed to parse git version".to_string()).await;
194201
return;

0 commit comments

Comments
 (0)