Skip to content

Conversation

@vinistock
Copy link
Member

@vinistock vinistock commented Nov 12, 2025

Motivation

Closes #3685

If the git extension is disabled, trying to invoke getAPI may throw an error like the one reported in the issue.

Implementation

We can just wrap that call in a try/catch block since we fall back to the default, which is to consider the git root to be in the same place as the workspace path.

Copy link
Member Author


How to use the Graphite Merge Queue

Add the label graphite-merge to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@vinistock vinistock self-assigned this Nov 12, 2025
@vinistock vinistock added bugfix This PR will fix an existing bug vscode This pull request should be included in the VS Code extension's release notes labels Nov 12, 2025 — with Image Graphite App
@vinistock vinistock marked this pull request as ready for review November 12, 2025 21:52
@vinistock vinistock requested a review from a team as a code owner November 12, 2025 21:52
@graphite-app
Copy link

graphite-app bot commented Nov 13, 2025

Merge activity

### Motivation

Closes #3685

If the git extension is disabled, trying to invoke `getAPI` may throw an error like the one reported in the issue.

### Implementation

We can just wrap that call in a try/catch block since we fall back to the default, which is to consider the git root to be in the same place as the workspace path.
@graphite-app graphite-app bot force-pushed the 11-12-avoid_failing_if_the_git_extension_is_disabled branch from bd002e1 to abd88c8 Compare November 13, 2025 15:53
@graphite-app graphite-app bot merged commit abd88c8 into main Nov 13, 2025
36 checks passed
@graphite-app graphite-app bot deleted the 11-12-avoid_failing_if_the_git_extension_is_disabled branch November 13, 2025 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix This PR will fix an existing bug vscode This pull request should be included in the VS Code extension's release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[error] Error: Git model not found

2 participants