Skip to content

Commit 0566698

Browse files
committed
ship v1.0.2
1 parent 552ffe7 commit 0566698

File tree

7 files changed

+61
-13
lines changed

7 files changed

+61
-13
lines changed

CHANGELOG.md

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

3+
## 1.0.2 (28 October, 2015)
4+
5+
* Fix issue with 'git lfs smudge' and the batch API. #795 (@technoweenie)
6+
* Fix race condition in the git scanning code. #801 (@technoweenie)
7+
38
## 1.0.1 (23 October, 2015)
49

510
* Downcase git config keys (prevents Auth loop) #690 (@WillHipschman)

Nut.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[application]
22

33
name = "git-lfs"
4-
version = "1.0.1"
4+
version = "1.0.2"
55
authors = [
66
"Rick Olson <[email protected]>",
77
"Scott Barron <[email protected]>",

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
git-lfs (1.0.2) stable; urgency=low
2+
3+
* New upstream version
4+
5+
-- Stephen Gelman <[email protected]> Wed, 28 Oct 2015 14:29:00 +0000
6+
17
git-lfs (1.0.1) stable; urgency=low
28

39
* New upstream version

lfs/lfs.go

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

1515
const (
16-
Version = "1.0.1"
16+
Version = "1.0.2"
1717
tempDirPerms = 0755
1818
localMediaDirPerms = 0755
1919
localLogDirPerms = 0755

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

script/build.go

Lines changed: 44 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"encoding/json"
55
"flag"
66
"fmt"
7+
"io/ioutil"
78
"log"
89
"os"
910
"os/exec"
@@ -158,22 +159,25 @@ func buildCommand(dir, buildos, buildarch string) error {
158159
}
159160

160161
func setupInstaller(buildos, buildarch, dir string, buildMatrix map[string]Release) error {
161-
files := []string{
162+
textfiles := []string{
162163
"README.md", "CHANGELOG.md",
163164
}
164165

165-
for _, filename := range files {
166+
if buildos == "windows" {
167+
return winInstaller(textfiles, buildos, buildarch, dir, buildMatrix)
168+
} else {
169+
return unixInstaller(textfiles, buildos, buildarch, dir, buildMatrix)
170+
}
171+
}
172+
173+
func unixInstaller(textfiles []string, buildos, buildarch, dir string, buildMatrix map[string]Release) error {
174+
for _, filename := range textfiles {
166175
cmd := exec.Command("cp", filename, filepath.Join(dir, filename))
167176
if err := logAndRun(cmd); err != nil {
168177
return err
169178
}
170179
}
171180

172-
// Windows installer is uploaded separately. See script/nsis.
173-
if buildos == "windows" {
174-
return nil
175-
}
176-
177181
fullInstallPath := filepath.Join(dir, "install.sh")
178182
cmd := exec.Command("cp", "script/install.sh.example", fullInstallPath)
179183
if err := logAndRun(cmd); err != nil {
@@ -193,6 +197,39 @@ func setupInstaller(buildos, buildarch, dir string, buildMatrix map[string]Relea
193197
return logAndRun(cmd)
194198
}
195199

200+
func winInstaller(textfiles []string, buildos, buildarch, dir string, buildMatrix map[string]Release) error {
201+
for _, filename := range textfiles {
202+
by, err := ioutil.ReadFile(filename)
203+
if err != nil {
204+
return err
205+
}
206+
207+
winEndings := strings.Replace(string(by), "\n", "\r\n", -1)
208+
err = ioutil.WriteFile(filepath.Join(dir, filename), []byte(winEndings), 0644)
209+
if err != nil {
210+
return err
211+
}
212+
}
213+
214+
installerPath := filepath.Dir(filepath.Dir(dir))
215+
name := zipName(buildos, buildarch) + ".zip"
216+
full := filepath.Join(installerPath, name)
217+
matches, err := filepath.Glob(dir + "/*")
218+
if err != nil {
219+
return err
220+
}
221+
222+
addToMatrix(buildMatrix, buildos, buildarch, name)
223+
224+
args := make([]string, len(matches)+2)
225+
args[0] = "-j" // junk the zip paths
226+
args[1] = full
227+
copy(args[2:], matches)
228+
229+
cmd := exec.Command("zip", args...)
230+
return logAndRun(cmd)
231+
}
232+
196233
func addToMatrix(buildMatrix map[string]Release, buildos, buildarch, name string) {
197234
buildMatrix[fmt.Sprintf("%s-%s", buildos, buildarch)] = Release{
198235
Label: releaseLabel(buildos, buildarch),

script/nsis/installer.nsi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ OutFile "GitLFSInstaller.exe"
33

44
InstallDir $DESKTOP
55

6-
VIProductVersion "1.0.1.0"
7-
VIAddVersionKey FileVersion "1.0.1.0"
8-
VIAddVersionKey ProductVersion "1.0.1.0"
6+
VIProductVersion "1.0.2.0"
7+
VIAddVersionKey FileVersion "1.0.2.0"
8+
VIAddVersionKey ProductVersion "1.0.2.0"
99
VIAddVersionKey ProductName "Git LFS"
1010
VIAddVersionKey Comments "Git LFS"
1111
VIAddVersionKey CompanyName "GitHub, Inc"

0 commit comments

Comments
 (0)