File 0007-fix-old-git.patch of Package go1.20

Index: go-go1.20.12/src/cmd/go/testdata/vcstest/git/commit-after-tag.txt
===================================================================
--- go-go1.20.12.orig/src/cmd/go/testdata/vcstest/git/commit-after-tag.txt
+++ go-go1.20.12/src/cmd/go/testdata/vcstest/git/commit-after-tag.txt
@@ -22,7 +22,7 @@ git log --oneline --decorate=short
 cmp stdout .git-log
 
 -- .git-log --
-b325d82 (HEAD -> master) add init function
+b325d82 (HEAD, master) add init function
 8da67e0 (tag: v1.0.0) all: add go.mod and main.go
 -- go.mod --
 module vcs-test.golang.org/git/commit-after-tag.git
Index: go-go1.20.12/src/cmd/go/testdata/vcstest/git/empty-v2-without-v1.txt
===================================================================
--- go-go1.20.12.orig/src/cmd/go/testdata/vcstest/git/empty-v2-without-v1.txt
+++ go-go1.20.12/src/cmd/go/testdata/vcstest/git/empty-v2-without-v1.txt
@@ -17,7 +17,7 @@ git log --oneline --decorate=short
 cmp stdout .git-log
 
 -- .git-log --
-122733c (HEAD -> master, tag: v2.0.0) add go.mod file without go source files
+122733c (HEAD, tag: v2.0.0, master) add go.mod file without go source files
 -- go.mod --
 module vcs-test.golang.org/git/empty-v2-without-v1.git/v2
 
Index: go-go1.20.12/src/cmd/go/testdata/vcstest/git/hello.txt
===================================================================
--- go-go1.20.12.orig/src/cmd/go/testdata/vcstest/git/hello.txt
+++ go-go1.20.12/src/cmd/go/testdata/vcstest/git/hello.txt
@@ -16,7 +16,7 @@ git log --oneline --decorate=short
 cmp stdout .git-log
 
 -- .git-log --
-fc3a09f (HEAD -> master) hello
+fc3a09f (HEAD, master) hello
 -- hello.go --
 package main
 
Index: go-go1.20.12/src/cmd/go/testdata/vcstest/git/insecurerepo.txt
===================================================================
--- go-go1.20.12.orig/src/cmd/go/testdata/vcstest/git/insecurerepo.txt
+++ go-go1.20.12/src/cmd/go/testdata/vcstest/git/insecurerepo.txt
@@ -20,7 +20,7 @@ git log --oneline --decorate=short
 cmp stdout .git-log
 
 -- .git-log --
-6fecd21 (HEAD -> master) main: add Go source file
+6fecd21 (HEAD, master) main: add Go source file
 d1a15cd all: initialize module
 -- go.mod --
 module vcs-test.golang.org/insecure/go/insecure
Index: go-go1.20.12/src/cmd/go/testdata/vcstest/git/mainonly.txt
===================================================================
--- go-go1.20.12.orig/src/cmd/go/testdata/vcstest/git/mainonly.txt
+++ go-go1.20.12/src/cmd/go/testdata/vcstest/git/mainonly.txt
@@ -16,7 +16,7 @@ git log --oneline --decorate=short
 cmp stdout .git-log
 
 -- .git-log --
-8a27e8b (HEAD -> master) add main.go
+8a27e8b (HEAD, master) add main.go
 -- main.go --
 package main
 
Index: go-go1.20.12/src/cmd/go/testdata/vcstest/git/modlegacy1-new.txt
===================================================================
--- go-go1.20.12.orig/src/cmd/go/testdata/vcstest/git/modlegacy1-new.txt
+++ go-go1.20.12/src/cmd/go/testdata/vcstest/git/modlegacy1-new.txt
@@ -16,7 +16,7 @@ git log --oneline --decorate=short
 cmp stdout .git-log
 
 -- .git-log --
-36cc50a (HEAD -> master) initial commit
+36cc50a (HEAD, master) initial commit
 -- go.mod --
 module "vcs-test.golang.org/git/modlegacy1-new.git/v2"
 -- new.go --
Index: go-go1.20.12/src/cmd/go/testdata/vcstest/git/modlegacy1-old.txt
===================================================================
--- go-go1.20.12.orig/src/cmd/go/testdata/vcstest/git/modlegacy1-old.txt
+++ go-go1.20.12/src/cmd/go/testdata/vcstest/git/modlegacy1-old.txt
@@ -16,7 +16,7 @@ git log --oneline --decorate=short
 cmp stdout .git-log
 
 -- .git-log --
-6b4ba8b (HEAD -> master) initial commit
+6b4ba8b (HEAD, master) initial commit
 -- p1/p1.go --
 package p1
 
Index: go-go1.20.12/src/cmd/go/testdata/vcstest/git/no-tags.txt
===================================================================
--- go-go1.20.12.orig/src/cmd/go/testdata/vcstest/git/no-tags.txt
+++ go-go1.20.12/src/cmd/go/testdata/vcstest/git/no-tags.txt
@@ -16,7 +16,7 @@ git log --oneline --decorate=short
 cmp stdout .git-log
 
 -- .git-log --
-e706ba1 (HEAD -> master) all: add go.mod and main.go
+e706ba1 (HEAD, master) all: add go.mod and main.go
 -- go.mod --
 module vcs-test.golang.org/git/no-tags.git
 
openSUSE Build Service is sponsored by