Skip to content

Conversation

@thefriendlynet
Copy link
Contributor

Fixes: #16760

Datasource git on local file system fails with SyncError("Fetching remote data failed (TypeError): LocalGitClient.init() got an unexpected keyword argument 'quiet'")

Copy link
Member

@jeremystretch jeremystretch left a comment

Choose a reason for hiding this comment

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

Thanks for taking this on @thefriendlynet! I've just tweaked your fix to only add the quiet & depth arguments if using a remote URL (rather than removing them if not).

@thefriendlynet
Copy link
Contributor Author

Thanks for taking this on @thefriendlynet! I've just tweaked your fix to only add the quiet & depth arguments if using a remote URL (rather than removing them if not).

Perfect, I wasn't quite sure about the proper direction for the fix, hence my question in the issue.
Thanks for taking the time to review the PR.
I guess there aren't many other URL schemes anyway besides http(s) and local

@jeremystretch jeremystretch merged commit f2e1de0 into netbox-community:develop Jul 10, 2024
jeremystretch added a commit that referenced this pull request Jul 26, 2024
* Fixes #16760: datasource git on local file system fails

* Fixes #16760: datasource git on local file system fails

* Set depth & quiet parameters only if using a remote URL

---------

Co-authored-by: Jeremy Stretch <[email protected]>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Datasource git on local file system fails

2 participants