mirror of
https://github.com/moghtech/komodo.git
synced 2026-07-16 01:59:56 -05:00
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/moghtech/komodo/pull/1448
Author: @lukababu
Created: 5/27/2026
Status: 🔄 Open
Base:
main← Head:fix/git-account-username-in-clone-url📝 Commits (1)
58def20Parse username and token📊 Changes
2 files changed (+58 additions, -4 deletions)
View changed files
📝
bin/core/src/helpers/mod.rs(+34 -3)📝
bin/periphery/src/helpers.rs(+24 -1)📄 Description
Closes #387
Why
Private repo clones can fail on providers that validate HTTP basic-auth usernames (for example GitLab deploy tokens, Bitbucket, and GitHub fine-grained PATs).
Komodo currently resolves a token but loses the configured account username before URL construction, so clone URLs fall back to
token:<token>@.... That causesHTTP Basic: Access deniedfor providers that require a specific username.What changed
username:tokenform (while preserving existingtokenvalues that already contain:for backward compatibility).Behavior
Before:
https://token:<token>@<provider>/<repo>After:
https://<configured-username>:<token>@<provider>/<repo>Backward compatibility
tokenfield manually set tousername:token) continue to work unchanged.Validation
cargo check -p komodo_corepassescargo check -p komodo_peripherypassescargo clippy -p komodo_core -p komodo_periphery --no-depspasses🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.