feat: translation support
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
See #483
This commit is contained in:
@ -6,12 +6,13 @@ import (
|
||||
"coopcloud.tech/abra/pkg/log"
|
||||
"github.com/go-git/go-git/v5"
|
||||
"github.com/go-git/go-git/v5/config"
|
||||
"github.com/leonelquinteros/gotext"
|
||||
)
|
||||
|
||||
// CreateRemote creates a new git remote in a repository
|
||||
func CreateRemote(repo *git.Repository, name, url string, dryRun bool) error {
|
||||
if dryRun {
|
||||
log.Debugf("dry run: remote %s (%s) not created", name, url)
|
||||
log.Debugf(gotext.Get("dry run: remote %s (%s) not created", name, url))
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user