Skip to content

Commit 0274d85

Browse files
authored
Merge pull request git-lfs#3943 from git-lfs/release-next
release: v2.9.2
2 parents 7b479cc + 6c00caf commit 0274d85

17 files changed

Lines changed: 81 additions & 23 deletions

.github/workflows/ci.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
os: [ubuntu-latest, macos-latest]
1010
runs-on: ${{ matrix.os }}
1111
steps:
12-
- uses: actions/checkout@master
12+
- uses: actions/checkout@v1
1313
- run: script/cibuild
1414
- run: make release
1515
- run: mkdir -p bin/assets
@@ -22,7 +22,7 @@ jobs:
2222
name: Build on Windows
2323
runs-on: windows-latest
2424
steps:
25-
- uses: actions/checkout@master
25+
- uses: actions/checkout@v1
2626
- run: mkdir -p "$HOME/go/bin"
2727
shell: bash
2828
- run: set GOPATH=%HOME%\go
@@ -57,7 +57,7 @@ jobs:
5757
os: [ubuntu-latest, macos-latest]
5858
runs-on: ${{ matrix.os }}
5959
steps:
60-
- uses: actions/checkout@master
60+
- uses: actions/checkout@v1
6161
- run: git clone -b master https://github.com/git/git.git "$HOME/git"
6262
- run: script/build-git "$HOME/git"
6363
- run: script/cibuild
@@ -68,7 +68,16 @@ jobs:
6868
os: [ubuntu-latest, macos-latest]
6969
runs-on: ${{ matrix.os }}
7070
steps:
71-
- uses: actions/checkout@master
71+
- uses: actions/checkout@v1
7272
- run: git clone -b v2.0.0 https://github.com/git/git.git "$HOME/git"
7373
- run: script/build-git "$HOME/git"
7474
- run: script/cibuild
75+
build-docker:
76+
name: Build Linux packages
77+
runs-on: ubuntu-latest
78+
steps:
79+
- uses: actions/checkout@v1
80+
- uses: actions/setup-ruby@v1
81+
- run: git clone https://github.com/git-lfs/build-dockers.git "$HOME/build-dockers"
82+
- run: (cd "$HOME/build-dockers" && ./build_dockers.bsh)
83+
- run: DOCKER_AUTOPULL=0 ./docker/run_dockers.bsh

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
name: Build Windows Assets
99
runs-on: windows-latest
1010
steps:
11-
- uses: actions/checkout@master
11+
- uses: actions/checkout@v1
1212
- uses: actions/setup-ruby@v1
1313
- run: mkdir -p "$HOME/go/bin"
1414
shell: bash
@@ -46,7 +46,7 @@ jobs:
4646
needs: build-windows
4747
runs-on: ubuntu-latest
4848
steps:
49-
- uses: actions/checkout@master
49+
- uses: actions/checkout@v1
5050
- uses: actions/setup-ruby@v1
5151
- uses: actions/download-artifact@v1
5252
with:
@@ -61,12 +61,13 @@ jobs:
6161
name: Build Linux Packages
6262
runs-on: ubuntu-latest
6363
steps:
64-
- uses: actions/checkout@master
64+
- uses: actions/checkout@v1
6565
- uses: actions/setup-ruby@v1
6666
- run: gem install packagecloud-ruby
6767
- run: git clone https://github.com/git-lfs/build-dockers.git "$HOME/build-dockers"
6868
- run: (cd "$HOME/build-dockers" && ./build_dockers.bsh)
6969
- run: DOCKER_AUTOPULL=0 ./docker/run_dockers.bsh
70-
- run: ./script/packagecloud.rb
70+
# If this is a pre-release tag, don't upload anything to packagecloud.
71+
- run: '[ -z "${GITHUB_REF%%refs/tags/*-pre*}" ] || ./script/packagecloud.rb'
7172
env:
7273
PACKAGECLOUD_TOKEN: ${{secrets.PACKAGECLOUD_TOKEN}}

CHANGELOG.md

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

3+
## 2.9.2 (12 December 2019)
4+
5+
This release fixes a few regressions, such as a possible nil pointer
6+
dereference, a failure to retry batch requests, and a bug where repositories
7+
could fail to be detected on Windows.
8+
9+
We would like to extend a special thanks to the following open-source
10+
contributors:
11+
12+
* @exceed-alae for fixing a possible nil pointer dereference
13+
14+
### Bugs
15+
16+
* Add nil-check on defer block of DoTransfer() #3936 (@exceed-alae)
17+
* Retry batch failures #3930 (@bk2204)
18+
* rpm: use old setup code on CentOS 7 #3938 (@bk2204)
19+
* Handle missing cygpath gracefully #3910 (@bk2204)
20+
21+
### Misc
22+
23+
* Don't abort with newer Git when in a bare repo #3940 (@bk2204)
24+
* Fix more Linux package issues #3932 (@bk2204)
25+
326
## 2.9.1 (25 November 2019)
427

528
This release fixes a few regressions, such as the ability to use HTTP/1.1 when

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 = "2.9.1"
16+
Version = "2.9.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 (2.9.2) stable; urgency=low
2+
3+
* New upstream version
4+
5+
-- brian m. carlson <[email protected]> Thu, 12 Dec 2019 14:29:00 -0000
6+
17
git-lfs (2.9.1) stable; urgency=low
28

39
* New upstream version

git/git.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
"io/ioutil"
1313
"net/url"
1414
"os"
15+
"os/exec"
1516
"path/filepath"
1617
"regexp"
1718
"strconv"
@@ -597,7 +598,14 @@ func GitAndRootDirs() (string, string, error) {
597598
out, err := cmd.Output()
598599
output := string(out)
599600
if err != nil {
600-
return "", "", fmt.Errorf("Failed to call git rev-parse --git-dir --show-toplevel: %q", buf.String())
601+
// If we got a fatal error, it's possible we're on a newer
602+
// (2.24+) Git and we're not in a worktree, so fall back to just
603+
// looking up the repo directory.
604+
if e, ok := err.(*exec.ExitError); ok && e.ProcessState.ExitCode() == 128 {
605+
absGitDir, err := GitDir()
606+
return absGitDir, "", err
607+
}
608+
return "", "", fmt.Errorf("failed to call git rev-parse --git-dir --show-toplevel: %q", buf.String())
601609
}
602610

603611
paths := strings.Split(output, "\n")

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: 2.9.1
2+
Version: 2.9.2
33
Release: 1%{?dist}
44
Summary: Git extension for versioning large files
55

rpm/SPECS/rubygem-hpricot.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Requires: ruby
1818
a swift, liberal HTML parser with a fantastic library
1919

2020
%prep
21-
%if 0%{?el6}
21+
%if 0%{?el6}%{?el7}
2222
%setup -q -c -T
2323
%else
2424
%setup -q -n %{gem_name}-%{version}

rpm/SPECS/rubygem-mustache.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ BuildArch: noarch
2020
Inspired by ctemplate, Mustache is a framework-agnostic way to render logic-free views. As ctemplates says, "It emphasizes separating logic from presentation: it is impossible to embed application logic in this template language. Think of Mustache as a replacement for your views. Instead of views consisting of ERB or HAML with random helpers and arbitrary logic, your views are broken into two parts: a Ruby class and an HTML template.
2121

2222
%prep
23-
%if 0%{?el6}
23+
%if 0%{?el6}%{?el7}
2424
%setup -q -c -T
2525
%else
2626
%setup -q -n %{gem_name}-%{version}

rpm/SPECS/rubygem-rdiscount.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Requires: ruby > 1.9.2
1818
Fast Implementation of Gruber's Markdown in C
1919

2020
%prep
21-
%if 0%{?el6}
21+
%if 0%{?el6}%{?el7}
2222
%setup -q -c -T
2323
%else
2424
%setup -q -n %{gem_name}-%{version}

0 commit comments

Comments
 (0)