summaryrefslogtreecommitdiffstats
path: root/vendor
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-01-09 23:51:21 +0800
committerKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2017-01-09 21:54:03 +0100
commit7209917fd7f8da423b1d779c744b48431c7aaae8 (patch)
treeeb1f25b17990ba315f024349415953d284dfe494 /vendor
parentb316b2e7406c5011c37db8f1d0b542bae46762ba (diff)
downloadgitea-7209917fd7f8da423b1d779c744b48431c7aaae8.tar.gz
gitea-7209917fd7f8da423b1d779c744b48431c7aaae8.zip
bug fix release
Diffstat (limited to 'vendor')
-rw-r--r--vendor/code.gitea.io/git/Makefile2
-rw-r--r--vendor/code.gitea.io/git/repo_tag.go8
-rw-r--r--vendor/code.gitea.io/git/tree_entry.go2
-rw-r--r--vendor/vendor.json6
4 files changed, 9 insertions, 9 deletions
diff --git a/vendor/code.gitea.io/git/Makefile b/vendor/code.gitea.io/git/Makefile
index 04fb8f5875..683b8e522e 100644
--- a/vendor/code.gitea.io/git/Makefile
+++ b/vendor/code.gitea.io/git/Makefile
@@ -18,7 +18,7 @@ generate:
.PHONY: fmt
fmt:
- go fmt $(PACKAGES)
+ find . -name "*.go" -type f -not -path "./vendor/*" | xargs gofmt -s -w
.PHONY: vet
vet:
diff --git a/vendor/code.gitea.io/git/repo_tag.go b/vendor/code.gitea.io/git/repo_tag.go
index 33a833d3aa..6503c8ada3 100644
--- a/vendor/code.gitea.io/git/repo_tag.go
+++ b/vendor/code.gitea.io/git/repo_tag.go
@@ -118,7 +118,7 @@ func parseTag(line string, opt TagOption) (*Tag, error) {
}
left := strings.TrimSpace(line[25:])
- start := strings.Index(left, "(tag: ")
+ start := strings.Index(left, "tag: ")
if start < 0 {
return nil, nil
}
@@ -127,11 +127,11 @@ func parseTag(line string, opt TagOption) (*Tag, error) {
return nil, nil
}
end = end + start + 1
- part := strings.IndexByte(left[start+6:end], ',')
+ part := strings.IndexByte(left[start+5:end], ',')
if part > 0 {
- tag.Name = strings.TrimSpace(left[start+6 : start+6+part])
+ tag.Name = strings.TrimSpace(left[start+5 : start+5+part])
} else {
- tag.Name = strings.TrimSpace(left[start+6 : end])
+ tag.Name = strings.TrimSpace(left[start+5 : end])
}
next := strings.IndexByte(left[end+2:], ' ')
if next < 0 {
diff --git a/vendor/code.gitea.io/git/tree_entry.go b/vendor/code.gitea.io/git/tree_entry.go
index 3f68d9868e..1e4934e81f 100644
--- a/vendor/code.gitea.io/git/tree_entry.go
+++ b/vendor/code.gitea.io/git/tree_entry.go
@@ -162,7 +162,7 @@ func (tes Entries) GetCommitsInfo(commit *Commit, treePath string) ([][]interfac
// GetCommitsInfoWithCustomConcurrency takes advantages of concurrency to speed up getting information
// of all commits that are corresponding to these entries. If the given maxConcurrency is negative or
-// equal to zero: the right number of goroutine (concurrency) to use will be choosen related of the
+// equal to zero: the right number of goroutine (concurrency) to use will be chosen related of the
// host CPU.
func (tes Entries) GetCommitsInfoWithCustomConcurrency(commit *Commit, treePath string, maxConcurrency int) ([][]interface{}, error) {
if len(tes) == 0 {
diff --git a/vendor/vendor.json b/vendor/vendor.json
index d34874edd6..f5b4228bca 100644
--- a/vendor/vendor.json
+++ b/vendor/vendor.json
@@ -3,10 +3,10 @@
"ignore": "test",
"package": [
{
- "checksumSHA1": "zK/6EifSPy/O5Vbx7CMWfnLHExI=",
+ "checksumSHA1": "P2wIRW07gnEgqLZAcg7bz+Jw9Oc=",
"path": "code.gitea.io/git",
- "revision": "a3ee12b97af51eec1b7aa0525f6a39c97520817d",
- "revisionTime": "2017-01-05T02:48:44Z"
+ "revision": "7477742b3c79d36d099baaf614864b6bbdfdecca",
+ "revisionTime": "2017-01-09T15:46:57Z"
},
{
"checksumSHA1": "BKj0haFTDebzdC2nACpoGzp3s8A=",