[PR #13475] [MERGED] 13358 Fix git DataSource clone authentication #14189

Closed
opened 2025-12-29 23:23:04 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/13475
Author: @alehaa
Created: 8/15/2023
Status: Merged
Merged: 8/15/2023
Merged by: @jeremystretch

Base: developHead: fix/data_source_git


📝 Commits (1)

  • 712787e Fix git DataSource clone authentication

📊 Changes

1 file changed (+7 additions, -6 deletions)

View changed files

📝 netbox/core/data_backends.py (+7 -6)

📄 Description

Fixes: #13358

Anonymous git clones (in GitLab) require the username and password (HTTP Basic authentication headers) not to be set in order to successfully clone. This patch will define clone args only, if the username passed is not empty.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/13475 **Author:** [@alehaa](https://github.com/alehaa) **Created:** 8/15/2023 **Status:** ✅ Merged **Merged:** 8/15/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `fix/data_source_git` --- ### 📝 Commits (1) - [`712787e`](https://github.com/netbox-community/netbox/commit/712787e01dc8649179e58e63bbd980e2ec6c83a2) Fix git DataSource clone authentication ### 📊 Changes **1 file changed** (+7 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `netbox/core/data_backends.py` (+7 -6) </details> ### 📄 Description ### Fixes: #13358 Anonymous git clones (in GitLab) require the username and password (HTTP Basic authentication headers) not to be set in order to successfully clone. This patch will define clone args only, if the username passed is not empty. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:23:04 +01:00
adam closed this issue 2025-12-29 23:23:04 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14189