From 6f41391415a4b0c61672f2b83108406511b24089 Mon Sep 17 00:00:00 2001 From: Eric Norris Date: Thu, 28 May 2026 15:13:02 -0400 Subject: [PATCH] fix: strip `.git` suffix You can clone w/o `.git`, but since it's in the URL that GitHub provides in the "Clone" instructions for a repository, it is better to make that work here. --- cmd/git-credential-github-app-sts/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/git-credential-github-app-sts/main.go b/cmd/git-credential-github-app-sts/main.go index 090409e..e07773a 100644 --- a/cmd/git-credential-github-app-sts/main.go +++ b/cmd/git-credential-github-app-sts/main.go @@ -73,6 +73,8 @@ func get(in []credentialAttribute) ([]credentialAttribute, error) { return nil, fmt.Errorf("missing path in credential input") } + path = strings.TrimSuffix(path, ".git") + resource := fmt.Sprintf("https://%s/%s", host, path) ctx := context.Background()