Fix
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
7bdfff49ea
commit
0fd5598f6c
|
@ -21,3 +21,6 @@
|
|||
# Go workspace file
|
||||
go.work
|
||||
.idea
|
||||
|
||||
beancount/
|
||||
config.yml
|
||||
|
|
|
@ -43,11 +43,15 @@ func clone() error {
|
|||
|
||||
func pull() error {
|
||||
w, err := repo.Worktree()
|
||||
if err != nil && !errors.Is(err, git.NoErrAlreadyUpToDate) {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return w.Pull(&git.PullOptions{Auth: &http.BasicAuth{
|
||||
err = w.Pull(&git.PullOptions{Auth: &http.BasicAuth{
|
||||
Username: config.Cfg.Username,
|
||||
Password: config.Cfg.Password,
|
||||
}})
|
||||
if err != nil && !errors.Is(err, git.NoErrAlreadyUpToDate) {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue