From 522edb9202ab18a745a47348247de3a4b7739265 Mon Sep 17 00:00:00 2001 From: Mohamed Habib Date: Wed, 17 Jul 2024 14:39:30 +0100 Subject: [PATCH] fix newline in repository (#1626) --- dgctl/cmd/exec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dgctl/cmd/exec.go b/dgctl/cmd/exec.go index 53f4971f1..16db8d7a5 100644 --- a/dgctl/cmd/exec.go +++ b/dgctl/cmd/exec.go @@ -38,7 +38,7 @@ func getRepoUsername() (string, error) { // Execute 'git config --get remote.origin.url' to get the URL of the origin remote cmd := exec.Command("git", "config", "--get", "user.name") out, err := cmd.Output() - return string(out), err + return strings.TrimSpace(string(out)), err } func getDefaultBranch() (string, error) {