mirror of
https://gitea.com/gitea/tea.git
synced 2026-10-26 19:11:25 +01:00
fix: address verified review findings (branches-checkout-status-1)
Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
27 files changed
+281
-65
No files matched your search
@@ -17,7 +17,7 @@ import (
|
||||
// upstreamCheckout discovers the repository from the upstream remote, as in a clone of a fork.
|
||||
func upstreamCheckout(server *httptest.Server) *fakeGit {
|
||||
return &fakeGit{results: map[string]string{
|
||||
"symbolic-ref --short HEAD": "main",
|
||||
"symbolic-ref --quiet HEAD": "main",
|
||||
"config --get branch.main.remote": "upstream",
|
||||
"remote get-url upstream": server.URL + "/alice/project.git",
|
||||
}}
|
||||
@@ -135,7 +135,7 @@ func TestRepoRenameHintsAtTheRemote(t *testing.T) {
|
||||
defer server.Close()
|
||||
deps, out, diagnostics := repoTTYDeps(t, server.URL)
|
||||
deps.Git = &fakeGit{results: map[string]string{
|
||||
"symbolic-ref --short HEAD": "main",
|
||||
"symbolic-ref --quiet HEAD": "main",
|
||||
"config --get branch.main.remote": "origin",
|
||||
"remote get-url origin": server.URL + "/alice/project.git",
|
||||
}}
|
||||
|
||||
Reference in new issue
Block a user