aboutsummaryrefslogtreecommitdiff
path: root/internal/testgit
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-06 18:38:44 +0800
committerGravatar Runxi Yu2026-03-06 18:58:30 +0800
commitf2922155de01b734e3e8b3f50be8f263ec13cacd (patch)
tree6dcfcf5689e63eea09314dce543e1de26cab89fe /internal/testgit
parentinternal/compress: Format (diff)
signatureNo signature
*: Lint v0.1.68
Diffstat (limited to 'internal/testgit')
-rw-r--r--internal/testgit/repo_tag_annotated.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/testgit/repo_tag_annotated.go b/internal/testgit/repo_tag_annotated.go
index 7e9bfbf5..56bd6a0c 100644
--- a/internal/testgit/repo_tag_annotated.go
+++ b/internal/testgit/repo_tag_annotated.go
@@ -1,7 +1,6 @@
package testgit
import (
- "fmt"
"testing"
"codeberg.org/lindenii/furgit/objectid"
@@ -12,5 +11,5 @@ func (testRepo *TestRepo) TagAnnotated(tb testing.TB, name string, target object
tb.Helper()
testRepo.Run(tb, "tag", "-a", name, target.String(), "-m", message)
- return testRepo.RevParse(tb, fmt.Sprintf("refs/tags/%s", name))
+ return testRepo.RevParse(tb, "refs/tags/"+name)
}