Skip to content

Commit dec5c8a

Browse files
authored
Merge pull request #1056 from pjbgf/fix-symlink
Bumps Go versions and go-billy
2 parents fbcecb5 + ea3cfc9 commit dec5c8a

File tree

6 files changed

+17
-8
lines changed

6 files changed

+17
-8
lines changed

.github/workflows/git.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Install Go
2323
uses: actions/setup-go@v5
2424
with:
25-
go-version: 1.21.x
25+
go-version: 1.22.x
2626

2727
- name: Install build dependencies
2828
run: sudo apt-get update && sudo apt-get install gettext libcurl4-openssl-dev

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
go-version: [1.19.x, 1.20.x, 1.21.x]
11+
go-version: [1.20.x, 1.21.x, 1.22.x]
1212
platform: [ubuntu-latest, macos-latest, windows-latest]
1313

1414
runs-on: ${{ matrix.platform }}

cli/go-git/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/go-git/go-git/cli/go-git
22

3-
go 1.19
3+
go 1.20
44

55
require (
66
github.com/go-git/go-git/v5 v5.12.0

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module github.com/go-git/go-git/v5
22

33
// go-git supports the last 3 stable Go versions.
4-
go 1.19
4+
go 1.20
55

66
require (
77
dario.cat/mergo v1.0.0
@@ -11,7 +11,7 @@ require (
1111
github.com/emirpasic/gods v1.18.1
1212
github.com/gliderlabs/ssh v0.3.7
1313
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376
14-
github.com/go-git/go-billy/v5 v5.5.0
14+
github.com/go-git/go-billy/v5 v5.5.1-0.20240427054813-8453aa90c6ec
1515
github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399
1616
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
1717
github.com/google/go-cmp v0.6.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ github.com/gliderlabs/ssh v0.3.7 h1:iV3Bqi942d9huXnzEF2Mt+CY9gLu8DNM4Obd+8bODRE=
2929
github.com/gliderlabs/ssh v0.3.7/go.mod h1:zpHEXBstFnQYtGnB8k8kQLol82umzn/2/snG7alWVD8=
3030
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 h1:+zs/tPmkDkHx3U66DAb0lQFJrpS6731Oaa12ikc+DiI=
3131
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376/go.mod h1:an3vInlBmSxCcxctByoQdvwPiA7DTK7jaaFDBTtu0ic=
32-
github.com/go-git/go-billy/v5 v5.5.0 h1:yEY4yhzCDuMGSv83oGxiBotRzhwhNr8VZyphhiu+mTU=
33-
github.com/go-git/go-billy/v5 v5.5.0/go.mod h1:hmexnoNsr2SJU1Ju67OaNz5ASJY3+sHgFRpCtpDCKow=
32+
github.com/go-git/go-billy/v5 v5.5.1-0.20240427054813-8453aa90c6ec h1:JtjPVUU/+C1OaEXG+ojNfspw7t7Y30jiyr6zsXA8Eco=
33+
github.com/go-git/go-billy/v5 v5.5.1-0.20240427054813-8453aa90c6ec/go.mod h1:bmsuIkj+yaSISZdLRNCLRaSiWnwDatBN1b62vLkXn24=
3434
github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399 h1:eMje31YglSBqCdIqdhKBW8lokaMrL3uTkpGYlE2OOT4=
3535
github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399/go.mod h1:1OCfN199q1Jm3HZlxleg+Dw/mwps2Wbk9frAWm+4FII=
3636
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE=

plumbing/format/gitattributes/dir.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ package gitattributes
22

33
import (
44
"os"
5+
"path/filepath"
6+
"strings"
57

68
"github.com/go-git/go-billy/v5"
79

@@ -59,7 +61,14 @@ func walkDirectory(fs billy.Filesystem, root []string) (attributes []MatchAttrib
5961
continue
6062
}
6163

62-
path := append(root, fi.Name())
64+
p := fi.Name()
65+
66+
// Handles the case whereby just the volume name ("C:") is appended,
67+
// to root. Change it to "C:\", which is better handled by fs.Join().
68+
if filepath.VolumeName(p) != "" && !strings.HasSuffix(p, string(filepath.Separator)) {
69+
p = p + string(filepath.Separator)
70+
}
71+
path := append(root, p)
6372

6473
dirAttributes, err := ReadAttributesFile(fs, path, gitattributesFile, false)
6574
if err != nil {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy