Skip to content

fix adding clr Reference LibGit2Sharp to git.py#2706

Merged
jmcouffin merged 4 commits intodevelopfrom
fix/libgit2sharp-ref
Jun 13, 2025
Merged

fix adding clr Reference LibGit2Sharp to git.py#2706
jmcouffin merged 4 commits intodevelopfrom
fix/libgit2sharp-ref

Conversation

@jmcouffin
Copy link
Copy Markdown
Contributor

@jmcouffin jmcouffin commented Jun 13, 2025

Description

fix adding clr Reference LibGit2Sharp to git.py

Related Issues

Totally unrelated to #2696 (comment)

@jmcouffin jmcouffin requested review from dosymep and sanzoghenzo June 13, 2025 14:06
@devloai
Copy link
Copy Markdown
Contributor

devloai bot commented Jun 13, 2025

Unable to perform a code review. You have run out of credits 😔
You can buy additional credits from the subscription page.

@jmcouffin jmcouffin added the dependencies Pull requests that update a dependency file label Jun 13, 2025
@jmcouffin jmcouffin requested a review from Copilot June 13, 2025 14:06
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes the way the clr reference for LibGit2Sharp is added in git.py to properly support IronPython environments.

  • Updated the import statement to include IRONPY3 and IRONPY2.
  • Adjusted the conditional logic to call clr.AddReferenceToFileAndPath for IronPython environments and fallback to clr.AddReference otherwise.
Comments suppressed due to low confidence (1)

pyrevitlib/pyrevit/coreutils/git.py:27

  • [nitpick] Consider adding a comment explaining why IronPython (IRONPY3/IRONPY2) environments require using 'AddReferenceToFileAndPath' instead of the standard 'AddReference'.
if IRONPY3 or IRONPY2:

Copy link
Copy Markdown
Contributor

@sanzoghenzo sanzoghenzo left a comment

Choose a reason for hiding this comment

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

You can make it easier 😉

jmcouffin and others added 2 commits June 13, 2025 19:57
Co-authored-by: Andrea Ghensi <andrea.ghensi@gmail.com>
Co-authored-by: Andrea Ghensi <andrea.ghensi@gmail.com>
@sanzoghenzo sanzoghenzo self-requested a review June 13, 2025 18:16
@jmcouffin jmcouffin merged commit e463c77 into develop Jun 13, 2025
@jmcouffin jmcouffin deleted the fix/libgit2sharp-ref branch June 13, 2025 18:26
@jmcouffin
Copy link
Copy Markdown
Contributor Author

Thanks for the review @sanzoghenzo

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25164+1830-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25171+0757-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.2.0.25181+1313-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New public release are available for 5.2.0.25181+1425

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

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants