Skip to content

Commit d3658c4

Browse files
authored
Merge pull request #39 from jpds/git-remote-fetch-error
git.go: Log the remote fetch failure as an error
2 parents e3ea3f5 + fe69a41 commit d3658c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/repository/git.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func fetch(r repository, remote types.Remote) (err error) {
137137
logrus.Infof("New commits have been fetched from '%s'", remote.URL)
138138
return nil
139139
} else if err != git.NoErrAlreadyUpToDate {
140-
logrus.Infof("Pull from remote '%s' failed: %s", remote.Name, err)
140+
logrus.Errorf("Pull from remote '%s' failed: %s", remote.Name, err)
141141
return fmt.Errorf("'git fetch %s' fails: '%s'", remote.Name, err)
142142
} else {
143143
logrus.Debugf("No new commits have been fetched from the remote '%s'", remote.Name)

0 commit comments

Comments
 (0)