diff options
Diffstat (limited to 'modules/git/repo_index.go')
-rw-r--r-- | modules/git/repo_index.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/git/repo_index.go b/modules/git/repo_index.go index 4d26563a91..2c351e209f 100644 --- a/modules/git/repo_index.go +++ b/modules/git/repo_index.go @@ -12,7 +12,7 @@ import ( // ReadTreeToIndex reads a treeish to the index func (repo *Repository) ReadTreeToIndex(treeish string) error { if len(treeish) != 40 { - res, err := NewCommand("rev-parse", treeish).RunInDir(repo.Path) + res, err := NewCommand("rev-parse", "--verify", treeish).RunInDir(repo.Path) if err != nil { return err } |