From fc04b26ec5f9b618b41d3bcf90a4c121e5b5f793 Mon Sep 17 00:00:00 2001 From: Matthias Erll Date: Fri, 26 Jun 2026 22:05:31 +0200 Subject: [PATCH] fix: make sure to encode credentials separately --- src/git/connect.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/git/connect.ts b/src/git/connect.ts index 232b237c..0010e978 100644 --- a/src/git/connect.ts +++ b/src/git/connect.ts @@ -21,10 +21,10 @@ export function getAuthenticatedUrl(gitConfig: GitConfig): string { const urlNormalized = getUrl(repoUrl) const url = new URL(urlNormalized) if (username) { - url.username = username - url.password = password + url.username = encodeURIComponent(username) + url.password = encodeURIComponent(password) } else { - url.username = password + url.username = encodeURIComponent(password) url.password = '' } return url.toString()