Skip to content

Commit bf930a2

Browse files
authored
fix typo (#4599)
I misspelled an identifier in one spot and then just autocompleted to victory everywhere else. This commit fixes the typo!
1 parent a90798c commit bf930a2

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ func run(state overseer.State) {
453453
}
454454

455455
if gitCloneTimeout != nil {
456-
feature.GitGloneTimeoutDuration.Store(int64(*gitCloneTimeout))
456+
feature.GitCloneTimeoutDuration.Store(int64(*gitCloneTimeout))
457457
}
458458

459459
if *skipAdditionalRefs {

pkg/feature/feature.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
var (
88
ForceSkipBinaries atomic.Bool
99
ForceSkipArchives atomic.Bool
10-
GitGloneTimeoutDuration atomic.Int64
10+
GitCloneTimeoutDuration atomic.Int64
1111
SkipAdditionalRefs atomic.Bool
1212
EnableAPKHandler atomic.Bool
1313
UserAgentSuffix AtomicString

pkg/sources/git/git.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ func CloneRepo(ctx context.Context, userInfo *url.Userinfo, gitURL string, clone
474474
}
475475
}
476476

477-
timeout := time.Duration(feature.GitGloneTimeoutDuration.Load())
477+
timeout := time.Duration(feature.GitCloneTimeoutDuration.Load())
478478

479479
repo, err := executeClone(ctx, cloneParams{userInfo, gitURL, args, path, authInUrl, timeout})
480480
if err != nil {

pkg/sources/git/git_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ func TestClone_Timeout(t *testing.T) {
4343
})
4444

4545
t.Run("a clone that times out should time out", func(t *testing.T) {
46-
feature.GitGloneTimeoutDuration.Store(int64(1 * time.Nanosecond))
47-
t.Cleanup(func() { feature.GitGloneTimeoutDuration.Store(0) })
46+
feature.GitCloneTimeoutDuration.Store(int64(1 * time.Nanosecond))
47+
t.Cleanup(func() { feature.GitCloneTimeoutDuration.Store(0) })
4848

4949
_, _, err := CloneRepo(
5050
ctx,

0 commit comments

Comments
 (0)