Closed
Description
Description
Every time I run this test, it seems to fail locally but succeed remotely.
2023/12/01 13:55:50 ...dules/git/command.go:275:Run() [E] git command is broken: /usr/bin/git -c protocol.version=2 -c credential.helper=, broken args: -test
2023/12/01 13:55:50 ...dules/git/command.go:275:Run() [E] git command is broken: /usr/bin/git -c protocol.version=2 -c credential.helper=, broken args: --test
61ab7345a1a3bbc590068ccae37b8515cfc5843c
61ab7345a1a3bbc590068ccae37b8515cfc5843c
--- FAIL: TestRepository_GetBranches (0.00s)
repo_branch_test.go:24:
Error Trace: /home/adamm/work/alp/gitea/gitea/modules/git/repo_branch_test.go:24
Error: elements differ
extra elements in list A:
([]interface {}) (len=1) {
(string) (len=6) "master"
}
extra elements in list B:
([]interface {}) (len=1) {
(string) (len=7) "branch1"
}
listA:
([]string) (len=2) {
(string) (len=6) "master",
(string) (len=7) "branch2"
}
listB:
([]string) (len=2) {
(string) (len=7) "branch1",
(string) (len=7) "branch2"
}
Test: TestRepository_GetBranches
FAIL
Test failed: run test failed, ExitCode=1
FAIL code.gitea.io/gitea/modules/git 0.464s
Gitea Version
main
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
git version 2.43.0
Operating System
openSUSE Tumbleweed
How are you running Gitea?
N/A
Database
None