You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~/x/build$ go test ./cmd/gitmirror -v
=== RUN TestHomepage
gitmirror_test.go:161: git config user.name Gopher: exit status 128
fatal: not in a git directory
--- FAIL: TestHomepage (0.04s)
=== RUN TestDebugWatcher
gitmirror_test.go:161: git config user.name Gopher: exit status 128
fatal: not in a git directory
--- FAIL: TestDebugWatcher (0.04s)
=== RUN TestArchive
gitmirror_test.go:161: git config user.name Gopher: exit status 128
fatal: not in a git directory
--- FAIL: TestArchive (0.04s)
=== RUN TestMirror
gitmirror_test.go:161: git config user.name Gopher: exit status 128
fatal: not in a git directory
--- FAIL: TestMirror (0.04s)
=== RUN TestMirrorInitiallyEmpty
gitmirror_test.go:161: git config user.name Gopher: exit status 128
fatal: not in a git directory
--- FAIL: TestMirrorInitiallyEmpty (0.04s)
FAIL
FAIL golang.org/x/build/cmd/gitmirror 0.257s
FAIL
What did you expect to see?
All tests passing.
The text was updated successfully, but these errors were encountered:
I believe that Google's build of git has a different default for the safe.bareRepository setting, which may require setting GIT_DIR explicitly for certain commands. (Compare https://go.dev/cl/489915.)
dmitshur
added
NeedsFix
The path to resolution is known, but the work has not been done.
and removed
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
labels
Apr 23, 2024
dmitshur
changed the title
x/build/cmd/gitmirror: tests consistently failing on Googler workstation
x/build/cmd/gitmirror: fails if global git config has safe.bareRepository set to 'explicit'
Apr 23, 2024
Go version
go version devel go1.23-58052fe8 Thu Mar 7 05:27:04 2024 +0000 linux/amd64
Output of
go env
in your module/workspace:What did you do?
What did you see happen?
What did you expect to see?
All tests passing.
The text was updated successfully, but these errors were encountered: