diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2021-03-01 17:27:15 +0300 |
---|---|---|
committer | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2021-03-01 17:27:15 +0300 |
commit | 5aa855e715ca89ff632b9043f2923474c5b56d70 (patch) | |
tree | 68e2a782d3f1b16d5aa51c1930f0b8e22ad71edf | |
parent | 0aa6a64a3d760696ba0d7d08822c605b8eec3e93 (diff) |
-rw-r--r-- | internal/git/localrepo/objects.go | 2 | ||||
-rw-r--r-- | internal/git/localrepo/objects_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/internal/git/localrepo/objects.go b/internal/git/localrepo/objects.go index 51c6be69b..beb485f1c 100644 --- a/internal/git/localrepo/objects.go +++ b/internal/git/localrepo/objects.go @@ -81,7 +81,7 @@ func FormatTag(objectID, objectType string, tagName, userName, userEmail, tagBod maxHeaderLines := 4 actualHeaderLines := strings.Count(tagBuf, "\n") if actualHeaderLines != maxHeaderLines { - return "", fmt.Errorf("failed to format tag header for mktag: got %d lines, expected %d, \\n overflow!", actualHeaderLines, maxHeaderLines) + return "", fmt.Errorf("failed to format tag header for mktag: got %d lines, expected %d, \\n overflow", actualHeaderLines, maxHeaderLines) } tagBuf += "\n" diff --git a/internal/git/localrepo/objects_test.go b/internal/git/localrepo/objects_test.go index e06946c7d..bb1bdd281 100644 --- a/internal/git/localrepo/objects_test.go +++ b/internal/git/localrepo/objects_test.go @@ -122,7 +122,7 @@ func TestFormatTag(t *testing.T) { userName: []byte("root"), userEmail: []byte("root@localhost"), tagBody: []byte(""), - err: fmt.Errorf("failed to format tag header for mktag: got %d lines, expected %d, \\n overflow!", 5, 4), + err: fmt.Errorf("failed to format tag header for mktag: got %d lines, expected %d, \\n overflow", 5, 4), }, { desc: "signature with fixed time", |