Skip to content

Commit a2360ae

Browse files
authored
Merge pull request git-lfs#4879 from git-lfs/release-next
release: v3.1.2
2 parents 18b608c + 355f1ce commit a2360ae

File tree

8 files changed

+48
-44
lines changed

8 files changed

+48
-44
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ jobs:
1010
go: ['1.17.x']
1111
runs-on: ${{ matrix.os }}
1212
steps:
13-
- uses: actions/checkout@v2
14-
with:
15-
fetch-depth: 0
13+
- uses: actions/checkout@v1
1614
- uses: actions/setup-ruby@v1
1715
- uses: actions/setup-go@v2
1816
with:
@@ -43,9 +41,7 @@ jobs:
4341
go: ['1.13.x', '1.14.x']
4442
runs-on: ubuntu-20.04
4543
steps:
46-
- uses: actions/checkout@v2
47-
with:
48-
fetch-depth: 0
44+
- uses: actions/checkout@v1
4945
- uses: actions/setup-go@v2
5046
with:
5147
go-version: ${{ matrix.go }}
@@ -54,9 +50,7 @@ jobs:
5450
name: Build on Windows
5551
runs-on: windows-latest
5652
steps:
57-
- uses: actions/checkout@v2
58-
with:
59-
fetch-depth: 0
53+
- uses: actions/checkout@v1
6054
- uses: actions/setup-ruby@v1
6155
- uses: actions/setup-go@v2
6256
with:
@@ -112,9 +106,7 @@ jobs:
112106
os: [ubuntu-20.04, macos-latest]
113107
runs-on: ${{ matrix.os }}
114108
steps:
115-
- uses: actions/checkout@v2
116-
with:
117-
fetch-depth: 0
109+
- uses: actions/checkout@v1
118110
- run: git clone -b master https://github.com/git/git.git "$HOME/git"
119111
- run: script/build-git "$HOME/git"
120112
- run: GIT_DEFAULT_HASH=sha256 script/cibuild
@@ -125,19 +117,15 @@ jobs:
125117
os: [ubuntu-20.04, macos-latest]
126118
runs-on: ${{ matrix.os }}
127119
steps:
128-
- uses: actions/checkout@v2
129-
with:
130-
fetch-depth: 0
120+
- uses: actions/checkout@v1
131121
- run: git clone -b v2.0.0 https://github.com/git/git.git "$HOME/git"
132122
- run: script/build-git "$HOME/git"
133123
- run: script/cibuild
134124
build-docker:
135125
name: Build Linux packages
136126
runs-on: ubuntu-20.04
137127
steps:
138-
- uses: actions/checkout@v2
139-
with:
140-
fetch-depth: 0
128+
- uses: actions/checkout@v1
141129
- uses: actions/setup-ruby@v1
142130
- run: git clone https://github.com/git-lfs/build-dockers.git "$HOME/build-dockers"
143131
- run: (cd "$HOME/build-dockers" && ./build_dockers.bsh)
@@ -150,9 +138,7 @@ jobs:
150138
arch: [arm64]
151139
container: [debian_11]
152140
steps:
153-
- uses: actions/checkout@v2
154-
with:
155-
fetch-depth: 0
141+
- uses: actions/checkout@v1
156142
- uses: actions/setup-ruby@v1
157143
- run: |
158144
echo '{"experimental": true}' | sudo tee /etc/docker/daemon.json

.github/workflows/release.yml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ jobs:
1111
matrix:
1212
go: ['1.17.x']
1313
steps:
14-
- uses: actions/checkout@v2
15-
with:
16-
fetch-depth: 0
14+
- uses: actions/checkout@v1
1715
- uses: actions/setup-ruby@v1
1816
- uses: actions/setup-go@v2
1917
with:
@@ -65,9 +63,7 @@ jobs:
6563
matrix:
6664
go: ['1.17.x']
6765
steps:
68-
- uses: actions/checkout@v2
69-
with:
70-
fetch-depth: 0
66+
- uses: actions/checkout@v1
7167
- uses: actions/setup-ruby@v1
7268
- uses: actions/setup-go@v2
7369
with:
@@ -103,9 +99,7 @@ jobs:
10399
matrix:
104100
go: ['1.17.x']
105101
steps:
106-
- uses: actions/checkout@v2
107-
with:
108-
fetch-depth: 0
102+
- uses: actions/checkout@v1
109103
- uses: actions/setup-ruby@v1
110104
- uses: actions/setup-go@v2
111105
with:
@@ -131,9 +125,7 @@ jobs:
131125
name: Build Linux Packages
132126
runs-on: ubuntu-20.04
133127
steps:
134-
- uses: actions/checkout@v2
135-
with:
136-
fetch-depth: 0
128+
- uses: actions/checkout@v1
137129
- uses: actions/setup-ruby@v1
138130
- run: gem install packagecloud-ruby
139131
- run: git clone https://github.com/git-lfs/build-dockers.git "$HOME/build-dockers"
@@ -151,15 +143,14 @@ jobs:
151143
arch: [arm64]
152144
container: [debian_11]
153145
steps:
154-
- uses: actions/checkout@v2
155-
with:
156-
fetch-depth: 0
146+
- uses: actions/checkout@v1
157147
- uses: actions/setup-ruby@v1
158148
- run: |
159149
echo '{"experimental": true}' | sudo tee /etc/docker/daemon.json
160150
sudo systemctl restart docker.service
161151
docker version -f '{{.Server.Experimental}}'
162152
- uses: docker/setup-qemu-action@v1
153+
- run: gem install packagecloud-ruby
163154
- run: git clone https://github.com/git-lfs/build-dockers.git "$HOME/build-dockers"
164155
- run: (cd "$HOME/build-dockers" && ./build_dockers.bsh --arch=$ARCH $CONTAINER)
165156
env:

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Git LFS Changelog
22

3+
## 3.1.2 (16 Feb 2022)
4+
5+
This is a bugfix release which fixes a bug in `git lfs install` and some issues
6+
in our CI release processes, including one that prevented arm64 packages for
7+
Debian 11 from being uploaded.
8+
9+
### Bugs
10+
11+
* lfs: add old hook content to the list of old hooks #4878 (@bk2204)
12+
13+
### Misc
14+
15+
* Revert "Merge pull request #4795 from bk2204/actions-checkout-v2" #4877 (@bk2204)
16+
* .github/workflows: install packagecloud gem #4873 (@bk2204)
17+
318
## 3.1.1 (14 Feb 2022)
419

520
This is a bugfix release which fixes a syntax error in the release workflow.

config/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var (
1313
)
1414

1515
const (
16-
Version = "3.1.1"
16+
Version = "3.1.2"
1717
)
1818

1919
func init() {

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
git-lfs (3.1.2) stable; urgency=low
2+
3+
* New upstream version
4+
5+
-- brian m. carlson <[email protected]> Wed, 16 Feb 2022 14:29:00 -0000
6+
17
git-lfs (3.1.1) stable; urgency=low
28

39
* New upstream version

lfs/hook.go

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import (
1818
var (
1919
// The basic hook which just calls 'git lfs TYPE'
2020
hookBaseContent = "#!/bin/sh\ncommand -v git-lfs >/dev/null 2>&1 || { echo >&2 \"\\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/{{Command}}'.\\n\"; exit 2; }\ngit lfs {{Command}} \"$@\""
21+
hookOldContent = "#!/bin/sh\ncommand -v git-lfs >/dev/null 2>&1 || { echo >&2 \"\\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/{{Command}}.\\n\"; exit 2; }\ngit lfs {{Command}} \"$@\""
2122
)
2223

2324
// A Hook represents a githook as described in http://git-scm.com/docs/githooks.
@@ -39,20 +40,25 @@ func LoadHooks(hookDir string, cfg *config.Configuration) []*Hook {
3940
"#!/bin/sh\ngit lfs pre-push \"$@\"",
4041
"#!/bin/sh\ncommand -v git-lfs >/dev/null 2>&1 || { echo >&2 \"\\nThis repository has been set up with Git LFS but Git LFS is not installed.\\n\"; exit 0; }\ngit lfs pre-push \"$@\"",
4142
"#!/bin/sh\ncommand -v git-lfs >/dev/null 2>&1 || { echo >&2 \"\\nThis repository has been set up with Git LFS but Git LFS is not installed.\\n\"; exit 2; }\ngit lfs pre-push \"$@\"",
43+
hookOldContent,
4244
}, cfg),
43-
NewStandardHook("post-checkout", hookDir, []string{}, cfg),
44-
NewStandardHook("post-commit", hookDir, []string{}, cfg),
45-
NewStandardHook("post-merge", hookDir, []string{}, cfg),
45+
NewStandardHook("post-checkout", hookDir, []string{hookOldContent}, cfg),
46+
NewStandardHook("post-commit", hookDir, []string{hookOldContent}, cfg),
47+
NewStandardHook("post-merge", hookDir, []string{hookOldContent}, cfg),
4648
}
4749
}
4850

4951
// NewStandardHook creates a new hook using the template script calling 'git lfs theType'
5052
func NewStandardHook(theType, hookDir string, upgradeables []string, cfg *config.Configuration) *Hook {
53+
formattedUpgradeables := make([]string, 0, len(upgradeables))
54+
for _, s := range upgradeables {
55+
formattedUpgradeables = append(formattedUpgradeables, strings.Replace(s, "{{Command}}", theType, -1))
56+
}
5157
return &Hook{
5258
Type: theType,
5359
Contents: strings.Replace(hookBaseContent, "{{Command}}", theType, -1),
5460
Dir: hookDir,
55-
upgradeables: upgradeables,
61+
upgradeables: formattedUpgradeables,
5662
cfg: cfg,
5763
}
5864
}

rpm/SPECS/git-lfs.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Name: git-lfs
2-
Version: 3.1.1
2+
Version: 3.1.2
33
Release: 1%{?dist}
44
Summary: Git extension for versioning large files
55

versioninfo.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"FileVersion": {
55
"Major": 3,
66
"Minor": 1,
7-
"Patch": 1,
7+
"Patch": 2,
88
"Build": 0
99
}
1010
},
@@ -13,7 +13,7 @@
1313
"FileDescription": "Git LFS",
1414
"LegalCopyright": "GitHub, Inc. and Git LFS contributors",
1515
"ProductName": "Git Large File Storage (LFS)",
16-
"ProductVersion": "3.1.1"
16+
"ProductVersion": "3.1.2"
1717
},
1818
"IconPath": "script/windows-installer/git-lfs-logo.ico"
1919
}

0 commit comments

Comments
 (0)