Skip to content

Commit 522edb9

Browse files
authored
fix newline in repository (#1626)
1 parent bedf968 commit 522edb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dgctl/cmd/exec.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func getRepoUsername() (string, error) {
3838
// Execute 'git config --get remote.origin.url' to get the URL of the origin remote
3939
cmd := exec.Command("git", "config", "--get", "user.name")
4040
out, err := cmd.Output()
41-
return string(out), err
41+
return strings.TrimSpace(string(out)), err
4242
}
4343

4444
func getDefaultBranch() (string, error) {

0 commit comments

Comments
 (0)