Skip to content

Commit

Permalink
chore: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesmithgh committed Mar 21, 2024
1 parent ac86e2e commit 8ed223a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions pkg/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,17 +251,17 @@ func HasCleanWorkingTree() (bool, error) {

func BranchRemote(branch string) (string, error) {
fmt.Printf(" ** branch is %s ** ", branch)
cmd := exec.Command(
"git",
"config",
fmt.Sprintf("branch.%s.remote", branch),
)
stdCombined, err := cmd.CombinedOutput()
if err != nil {
return "", err
}
// cmd := exec.Command(
// "git",
// "config",
// fmt.Sprintf("branch.%s.remote", branch),
// )
// stdCombined, err := cmd.CombinedOutput()
// if err != nil {
// return "", err
// }

return strings.TrimSuffix(string(stdCombined), "\n"), nil
return strings.TrimSuffix(string("huh"), "\n"), nil
}

func BranchMerge(branch string) (string, error) {
Expand Down

0 comments on commit 8ed223a

Please sign in to comment.