Skip to content

Commit

Permalink
Release 1.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
sgreben committed Aug 8, 2019
1 parent 9725b89 commit 4b2ac9b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = 1.1.4
VERSION = 1.1.5

APP := versions
PACKAGES := $(shell go list -f {{.Dir}} ./...)
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ Or [download the binary](https://github.com/sgreben/versions/releases/latest) fr

```sh
# Linux
curl -L https://github.com/sgreben/versions/releases/download/1.1.4/versions_1.1.4_linux_x86_64.tar.gz | tar xz
curl -L https://github.com/sgreben/versions/releases/download/1.1.5/versions_1.1.5_linux_x86_64.tar.gz | tar xz

# OS X
curl -L https://github.com/sgreben/versions/releases/download/1.1.4/versions_1.1.4_osx_x86_64.tar.gz | tar xz
curl -L https://github.com/sgreben/versions/releases/download/1.1.5/versions_1.1.5_osx_x86_64.tar.gz | tar xz

# Windows
curl -LO https://github.com/sgreben/versions/releases/download/1.1.4/versions_1.1.4_windows_x86_64.zip
unzip versions_1.1.4_windows_x86_64.zip
curl -LO https://github.com/sgreben/versions/releases/download/1.1.5/versions_1.1.5_windows_x86_64.zip
unzip versions_1.1.5_windows_x86_64.zip
```

Also available as a [docker image](https://quay.io/repository/sergey_grebenshchikov/versions?tab=tags):
Expand Down
2 changes: 1 addition & 1 deletion cmd/versions/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func fetchFromGit(url string, limit int) (versions.WithSources, error) {
CloneOptions: git.CloneOptions{
NoCheckout: true,
Depth: 1,
Tags: git.AllTags,
Tags: git.NoTags,
},
},
}
Expand Down
7 changes: 6 additions & 1 deletion pkg/simplegit/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"gopkg.in/src-d/go-billy.v4"
"gopkg.in/src-d/go-billy.v4/memfs"
git "gopkg.in/src-d/go-git.v4"
"gopkg.in/src-d/go-git.v4/config"
"gopkg.in/src-d/go-git.v4/plumbing"
"gopkg.in/src-d/go-git.v4/storage/memory"
)
Expand Down Expand Up @@ -47,10 +48,14 @@ func (r *Repository) RemoteRefs() (out []struct {
Name string
Reference string
}, err error) {
raw, err := r.Raw()
raw, err := git.Init(memory.NewStorage(), nil)
if err != nil {
return nil, err
}
raw.CreateRemote(&config.RemoteConfig{
Name: git.DefaultRemoteName,
URLs: []string{r.URL},
})
remote, err := raw.Remote(git.DefaultRemoteName)
if err != nil {
return nil, err
Expand Down

0 comments on commit 4b2ac9b

Please sign in to comment.