Update code.gitea.io/git

Signed-off-by: Jonas Franz <info@jonasfranz.software>
This commit is contained in:
Jonas Franz 2018-05-17 13:58:35 +02:00
parent 8bb51135b6
commit 5c2171e0b8
No known key found for this signature in database
GPG Key ID: 506AEEBE80BEDECD
2 changed files with 5 additions and 5 deletions

View File

@ -8,12 +8,12 @@ import "fmt"
// FileBlame return the Blame object of file
func (repo *Repository) FileBlame(revision, path, file string) ([]byte, error) {
return NewCommand("blame", "--root", file).RunInDirBytes(path)
return NewCommand("blame", "--root", "--", file).RunInDirBytes(path)
}
// LineBlame returns the latest commit at the given line
func (repo *Repository) LineBlame(revision, path, file string, line uint) (*Commit, error) {
res, err := NewCommand("blame", fmt.Sprintf("-L %d,%d", line, line), "-p", revision, file).RunInDir(path)
res, err := NewCommand("blame", fmt.Sprintf("-L %d,%d", line, line), "-p", revision, "--", file).RunInDir(path)
if err != nil {
return nil, err
}

6
vendor/vendor.json vendored
View File

@ -3,10 +3,10 @@
"ignore": "test appengine",
"package": [
{
"checksumSHA1": "jkAY8qJRd3N2isGPpoCMoq+QkBc=",
"checksumSHA1": "ZaRoMZesTnkzM7+2BoY1CTED3Eg=",
"path": "code.gitea.io/git",
"revision": "258a447de641abb5382ad9e2f166e6011dff30fc",
"revisionTime": "2018-05-13T13:21:47Z"
"revision": "0077debc17a58c821f4e62e815a54c1ab52da157",
"revisionTime": "2018-05-17T01:19:24Z"
},
{
"checksumSHA1": "WMD6+Qh2+5hd9uiq910pF/Ihylw=",