1// Copyright 2020 The Gitea Authors. All rights reserved.
2// Use of this source code is governed by a MIT-style
3// license that can be found in the LICENSE file.
4
5//go:build !gogit
6// +build !gogit
7
8package git
9
10func (repo *Repository) getBlob(id SHA1) (*Blob, error) {
11	if id.IsZero() {
12		return nil, ErrNotExist{id.String(), ""}
13	}
14	return &Blob{
15		ID:   id,
16		repo: repo,
17	}, nil
18}
19