Skip to content

Commit c9ce0d9

Browse files
committed
fix: correct spelling of 'lightweight'
1 parent 65d3961 commit c9ce0d9

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

pkg/git/remote.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func (r *Remote) RevisionCommit(revision string) (string, error) {
111111
return "", err
112112
}
113113

114-
refLighweightTag := formatRefForTag(revision, false)
114+
refLightweightTag := formatRefForTag(revision, false)
115115
refAnnotatedTag := formatRefForTag(revision, true)
116116
commit := ""
117117
for _, ref := range refs {
@@ -121,7 +121,7 @@ func (r *Remote) RevisionCommit(revision string) (string, error) {
121121
}
122122
// if the lightweight form is found, we store and keep looking
123123
// because we could have the annotated one
124-
if ref.Name == refLighweightTag {
124+
if ref.Name == refLightweightTag {
125125
commit = ref.Hash
126126
}
127127
}

pkg/git/remote_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ var _ = Describe("git's RevisionCommit tests", func() {
7575
})
7676
})
7777

78-
When("the given revision is a lighweight tag", func() {
78+
When("the given revision is a lightweight tag", func() {
7979
var tagCommit = "b2f7eacdeda55833e299efdd6955abb68f581547"
8080
BeforeEach(func() {
8181
fakeLister = &FakeRemoteLister{

0 commit comments

Comments
 (0)