Skip to content

Datasource git on local file system fails #16760

Closed
@thefriendlynet

Description

@thefriendlynet

Deployment Type

Self-hosted

NetBox Version

v4.0.2

Python Version

3.11

Steps to Reproduce

  1. create Datasource type git, URL e.g. ///home/datasources
  2. try sync

Expected Behavior

files synced from local file system

Observed Behavior

SyncError("Fetching remote data failed (TypeError): LocalGitClient.__init__() got an unexpected keyword argument 'quiet'")

netbox/netbox/core/data_backends.py

        clone_args = {
            "branch": self.params.get('branch'),
            "config": self.config,
            "depth": 1,
            "errstream": porcelain.NoneStream(),
            "quiet": True,
        }

"quiet" and "depth" aren't supported by dulwich for local filesystem git repo's

Metadata

Metadata

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions