forked from toolshed/abra
refactor: use central logger
This commit is contained in:
@ -3,15 +3,15 @@ package git
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"coopcloud.tech/abra/pkg/log"
|
||||
"github.com/go-git/go-git/v5"
|
||||
"github.com/go-git/go-git/v5/config"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
// CreateRemote creates a new git remote in a repository
|
||||
func CreateRemote(repo *git.Repository, name, url string, dryRun bool) error {
|
||||
if dryRun {
|
||||
logrus.Debugf("dry run: remote %s (%s) not created", name, url)
|
||||
log.Debugf("dry run: remote %s (%s) not created", name, url)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user