Skip to content

Conversation

@rain-on
Copy link
Contributor

@rain-on rain-on commented Jan 28, 2026

If a user specifies something other than a branch in their "target revision" we want to provide a useful error message.

Turns out - libgit2sharp will fail if we try to pass in anything other than a branch (as it prepends the branchname with "refs/remotes/origin/" - which means that anything other than a branch will fail to clone anyway.

Given this, the error message for cloning has been updated to include a query to check that targetRevision is a branch.

Fixes MD-1210

⚠️ Does this change require a corresponding Server Change?
⚠️ If so - please add a "Requires Server Change" label to this PR!

@rain-on rain-on requested a review from flin-8 January 28, 2026 03:03
Copy link
Contributor

@flin-8 flin-8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Can you add a test for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants