Skip to content

Commit

Permalink
fix newline in repository (#1626)
Browse files Browse the repository at this point in the history
  • Loading branch information
motatoes authored Jul 17, 2024
1 parent bedf968 commit 522edb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dgctl/cmd/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 522edb9

Please sign in to comment.