We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bedf968 commit 522edb9Copy full SHA for 522edb9
dgctl/cmd/exec.go
@@ -38,7 +38,7 @@ func getRepoUsername() (string, error) {
38
// Execute 'git config --get remote.origin.url' to get the URL of the origin remote
39
cmd := exec.Command("git", "config", "--get", "user.name")
40
out, err := cmd.Output()
41
- return string(out), err
+ return strings.TrimSpace(string(out)), err
42
}
43
44
func getDefaultBranch() (string, error) {
0 commit comments