Skip to content

Commit

Permalink
chore: remove debugging prints
Browse files Browse the repository at this point in the history
  • Loading branch information
seriouspoop committed Sep 4, 2024
1 parent 66c55d6 commit 1a2bb3b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion repo/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ func (g *Git) AddThenCommit(commitMsg string) error {
}
_, err = w.Add(".")
if err != nil {
fmt.Println(err)
return err
}
_, err = w.Commit(commitMsg, &git.CommitOptions{
Expand Down
4 changes: 1 addition & 3 deletions svc/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ func (s *Svc) Pull(initial bool) error {
return err
}
if initial {
output, err := s.bash.PullBranch(remoteDetails.Name, pullBranch, true)
fmt.Println(output)
_, err := s.bash.PullBranch(remoteDetails.Name, pullBranch, true)
return err
}

Expand Down Expand Up @@ -254,7 +253,6 @@ func (s *Svc) Push(setUpstreamBranch bool) error {
}
pushErr = s.git.Push(remoteDetails, currBranch, providerAuth)
}
fmt.Println(pushErr)
if pushErr != nil {
if errors.Is(pushErr, ErrKeyNotSupported) {
message := fmt.Sprintf("copy contents of %s.pub and upload the keys on %s", filepath.Join(os.Getenv("HOME"), gopushDir, keyName), remoteDetails.Provider().String())
Expand Down

0 comments on commit 1a2bb3b

Please sign in to comment.