-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
mcve-requiredMinimal, Complete, and Verifiable example required for a bugMinimal, Complete, and Verifiable example required for a bug
Description
Describe the bug
git lfs fetch shows panic runtime error (goroutine 27).
To Reproduce
Steps to reproduce the behavior:
- Go to 'some cloned repo folder'
- Run
git lfs fetch - Enter HTTP auth/passwd (using security tokens)
- See error
Expected behavior
git lfs fetch runs successfully
System environment
Ubuntu 22.04
Output of git lfs env
panic: runtime error: index out of range [0] with length 0
goroutine 27 [running]:
github.com/git-lfs/git-lfs/v3/lfsapi.(*Client).getCreds(0xc00045bb60, {0xc000380200, 0x6}, {{0xc000380285, 0x5}, {0xc00039fe30, 0x2e}}, 0xc0000f6100)
github.com/git-lfs/git-lfs/v3/lfsapi/auth.go:165 +0x798
github.com/git-lfs/git-lfs/v3/lfsapi.(*Client).doWithAuth(0xc00045bb60, {0xc000380200, 0x6}, {{0xc000380285, 0x5}, {0xc00039fe30, 0x2e}}, 0xc0000f6100, {0x0, 0x0, ...})
github.com/git-lfs/git-lfs/v3/lfsapi/auth.go:63 +0xd8
github.com/git-lfs/git-lfs/v3/lfsapi.(*Client).DoWithAuth(0xc00045bb60, {0xc000380200, 0x6}, {{0xc000380285, 0x5}, {0xc00039fe30, 0x2e}}, 0xc0000f6100)
github.com/git-lfs/git-lfs/v3/lfsapi/auth.go:26 +0x79
github.com/git-lfs/git-lfs/v3/lfsapi.(*Client).DoAPIRequestWithAuth(0xc00045bb60, {0xc000380200, 0x6}, 0xc0000f6100)
github.com/git-lfs/git-lfs/v3/lfsapi/auth.go:57 +0x147
github.com/git-lfs/git-lfs/v3/tq.(*tqClient).Batch(0xc000384b60, {0xc000380200, 0x6}, 0xc0004b85a0)
github.com/git-lfs/git-lfs/v3/tq/api.go:94 +0x3fe
github.com/git-lfs/git-lfs/v3/tq.Batch({0xb5c298, 0xc00003b400}, 0x1, {0xc000380200, 0x6}, 0x1?, {0xc00049aa80, 0x64, 0x64})
github.com/git-lfs/git-lfs/v3/tq/api.go:45 +0x2c8
github.com/git-lfs/git-lfs/v3/tq.(*TransferQueue).enqueueAndCollectRetriesFor(0xc0000f6200, {0xc00049a000, 0x64, 0x0?})
github.com/git-lfs/git-lfs/v3/tq/transfer_queue.go:581 +0x30d
github.com/git-lfs/git-lfs/v3/tq.(*TransferQueue).collectBatches.func1()
github.com/git-lfs/git-lfs/v3/tq/transfer_queue.go:470 +0x8b
created by github.com/git-lfs/git-lfs/v3/tq.(*TransferQueue).collectBatches
github.com/git-lfs/git-lfs/v3/tq/transfer_queue.go:463 +0x2bb
Additional context
Any other relevant context about the problem here.
Metadata
Metadata
Assignees
Labels
mcve-requiredMinimal, Complete, and Verifiable example required for a bugMinimal, Complete, and Verifiable example required for a bug