diff options
author | Bo-Yi Wu <appleboy.tw@gmail.com> | 2017-12-20 11:41:29 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-12-19 21:41:29 -0600 |
commit | 456648adac968df649fe71a44dc81177b9ea16c2 (patch) | |
tree | f37b1cb6f176ca8efbedce353a3d6961b21a2e9f /vendor | |
parent | 7b28154e8b412a7d83aa53359950cf76751e74c2 (diff) | |
download | gitea-456648adac968df649fe71a44dc81177b9ea16c2.tar.gz gitea-456648adac968df649fe71a44dc81177b9ea16c2.zip |
chore: upgrade gitea/git version (#3240)
ref: https://github.com/go-gitea/gitea/pull/3190
Diffstat (limited to 'vendor')
-rw-r--r-- | vendor/code.gitea.io/git/commit_info.go | 4 | ||||
-rw-r--r-- | vendor/vendor.json | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/vendor/code.gitea.io/git/commit_info.go b/vendor/code.gitea.io/git/commit_info.go index 77fe53bdda..106ebc618f 100644 --- a/vendor/code.gitea.io/git/commit_info.go +++ b/vendor/code.gitea.io/git/commit_info.go @@ -79,7 +79,7 @@ func targetedSearch(state *getCommitsInfoState, done chan error) { done <- nil return } - command := NewCommand("rev-list", "-1", "HEAD", "--", entryPath) + command := NewCommand("rev-list", "-1", state.headCommit.ID.String(), "--", entryPath) output, err := command.RunInDir(state.headCommit.repo.Path) if err != nil { done <- err @@ -192,7 +192,7 @@ func getCommitsInfo(state *getCommitsInfoState) error { ctx, cancel := context.WithTimeout(context.Background(), 1*time.Minute) defer cancel() - args := []string{"log", getCommitsInfoPretty, "--name-status", "-c"} + args := []string{"log", state.headCommit.ID.String(), getCommitsInfoPretty, "--name-status", "-c"} if len(state.treePath) > 0 { args = append(args, "--", state.treePath) } diff --git a/vendor/vendor.json b/vendor/vendor.json index f2d4a9aabf..e65aa3969c 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -3,10 +3,10 @@ "ignore": "test appengine", "package": [ { - "checksumSHA1": "UnJFMWkh0ulYlOV0etJYgt5SzJY=", + "checksumSHA1": "4OG03XZWTU5eUkWPTOwIB6H4BF0=", "path": "code.gitea.io/git", - "revision": "4768133d10fa395278f545f3bf3ce44552b30ad6", - "revisionTime": "2017-12-10T10:06:09Z" + "revision": "4573c63ec9c8257caf11e361c238b6ceb53781d7", + "revisionTime": "2017-12-20T02:56:39Z" }, { "checksumSHA1": "QQ7g7B9+EIzGjO14KCGEs9TNEzM=", |