Skip to content

Commit 4e87b40

Browse files
authored
Merge pull request #8 from nerdalize/min_git_v
Min git v
2 parents 33b167d + 8278b34 commit 4e87b40

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.3.0
1+
0.3.1

bits/repository.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ func (repo *Repository) Scan(left, right string, w io.Writer) (err error) {
793793

794794
go func() {
795795
defer w3.Close()
796-
err = repo.Git(ctx, r2, w3, "cat-file", "--batch-check=%(objectname) %(objecttype) %(objectsize) %(rest)")
796+
err = repo.Git(ctx, r2, w3, "cat-file", "--batch-check")
797797
if err != nil {
798798
errCh <- err
799799
}

make.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function run_build { #build a development version
3737
}
3838

3939
function run_release { #cross compile new release builds
40-
gox -osarch="linux/amd64 windows/amd64 darwin/amd64" -output=./bin/{{.OS}}_{{.Arch}}/git-bits
40+
gox -ldflags "-X main.version=`cat VERSION`" -osarch="linux/amd64 windows/amd64 darwin/amd64" -output=./bin/{{.OS}}_{{.Arch}}/git-bits
4141
}
4242

4343
case $1 in
@@ -47,9 +47,9 @@ case $1 in
4747
"release") run_release ;;
4848

4949
#
50-
# following commands are not portable
51-
# and only work on osx with "github-release"
52-
# "zip" and "shasum" installed and in PATH
50+
# following commands are probably not portable
51+
# and have only been tested on macOS with "github-release"
52+
# "zip" and "shasum" programs installed and avaiable in PATH
5353

5454
# 1. zip all binaries
5555
"publish-1" )

0 commit comments

Comments
 (0)