diff --git a/vendor/code.gitea.io/git/tree_entry.go b/vendor/code.gitea.io/git/tree_entry.go
index 58c5132460..7f454ab56c 100644
--- a/vendor/code.gitea.io/git/tree_entry.go
+++ b/vendor/code.gitea.io/git/tree_entry.go
@@ -266,7 +266,7 @@ func getNextCommitInfos(state *getCommitInfoState) error {
 func logCommand(exclusiveStartHash string, state *getCommitInfoState) *Command {
 	var commitHash string
 	if len(exclusiveStartHash) == 0 {
-		commitHash = "HEAD"
+		commitHash = state.headCommit.ID.String()
 	} else {
 		commitHash = exclusiveStartHash + "^"
 	}
diff --git a/vendor/vendor.json b/vendor/vendor.json
index 2a910aef1b..993effceff 100644
--- a/vendor/vendor.json
+++ b/vendor/vendor.json
@@ -3,10 +3,10 @@
 	"ignore": "test appengine",
 	"package": [
 		{
-			"checksumSHA1": "iqK8QebzwEcNL2iIRpMAOYwb7Zg=",
+			"checksumSHA1": "XfPYMmq34V2MFja1HC7nnYU5SAc=",
 			"path": "code.gitea.io/git",
-			"revision": "c98a6f353a13546ae13e7391020cadd750181585",
-			"revisionTime": "2017-05-29T11:48:12Z"
+			"revision": "7b07391b09e9642f470b134c2a5e35ee7d0d3491",
+			"revisionTime": "2017-06-01T00:33:00Z"
 		},
 		{
 			"checksumSHA1": "nLhT+bLMj8uLICP+EZbrdoQe6mM=",