Skip to content

Commit

Permalink
Fix #12483: Using mutable dulwich configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasge authored and jeremystretch committed May 4, 2023
1 parent f3826e6 commit ab69faa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netbox/core/data_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from django.conf import settings
from django.utils.translation import gettext as _
from dulwich import porcelain
from dulwich.config import StackedConfig
from dulwich.config import ConfigDict

from netbox.registry import registry
from .choices import DataSourceTypeChoices
Expand Down Expand Up @@ -91,7 +91,7 @@ class GitBackend(DataBackend):
def fetch(self):
local_path = tempfile.TemporaryDirectory()

config = StackedConfig.default()
config = ConfigDict()
clone_args = {
"branch": self.params.get('branch'),
"config": config,
Expand Down

0 comments on commit ab69faa

Please sign in to comment.