aboutsummaryrefslogtreecommitdiffstats
path: root/remote.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2021-12-11 12:02:17 +0100
committerGitHub <noreply@github.com>2021-12-11 12:02:17 +0100
commitf0b111ab70e4e90013658b0835929b2083902017 (patch)
tree04acaf3ded2a73541c213e10442602e346039bd0 /remote.go
parente60e348f614a7272e4a51bdee8ba20f059ca4cce (diff)
parent4ccea5bb8d8c12cb31dba22f36864ffb91529559 (diff)
downloadgo-git-f0b111ab70e4e90013658b0835929b2083902017.tar.gz
Merge pull request #425 from abhinav/error-strings
error strings: Don't capitalize, use periods, or newlines
Diffstat (limited to 'remote.go')
-rw-r--r--remote.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/remote.go b/remote.go
index 8fee2f3..db78ae7 100644
--- a/remote.go
+++ b/remote.go
@@ -257,7 +257,7 @@ func (r *Remote) addReachableTags(localRefs []*plumbing.Reference, remoteRefs st
tagObject, err := object.GetObject(r.s, tag.Hash())
var tagCommit *object.Commit
if err != nil {
- return fmt.Errorf("get tag object: %w\n", err)
+ return fmt.Errorf("get tag object: %w", err)
}
if tagObject.Type() != plumbing.TagObject {
@@ -271,7 +271,7 @@ func (r *Remote) addReachableTags(localRefs []*plumbing.Reference, remoteRefs st
tagCommit, err = object.GetCommit(r.s, annotatedTag.Target)
if err != nil {
- return fmt.Errorf("get annotated tag commit: %w\n", err)
+ return fmt.Errorf("get annotated tag commit: %w", err)
}
// only include tags that are reachable from one of the refs