forked from toolshed/abra
refactor: use central logger
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
package git
|
||||
|
||||
import (
|
||||
"coopcloud.tech/abra/pkg/log"
|
||||
"github.com/go-git/go-git/v5"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
// Add adds a file to the git index.
|
||||
@ -18,7 +18,7 @@ func Add(repoPath, path string, dryRun bool) error {
|
||||
}
|
||||
|
||||
if dryRun {
|
||||
logrus.Debugf("dry run: adding %s", path)
|
||||
log.Debugf("dry run: adding %s", path)
|
||||
} else {
|
||||
worktree.Add(path)
|
||||
}
|
||||
|
Reference in New Issue
Block a user