mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	Change all license headers to comply with REUSE specification. Fix #16132 Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github> Co-authored-by: John Olheiser <john.olheiser@gmail.com>
		
			
				
	
	
		
			17 lines
		
	
	
		
			296 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			296 B
		
	
	
	
		
			Go
		
	
	
	
	
	
// Copyright 2020 The Gitea Authors. All rights reserved.
 | 
						|
// SPDX-License-Identifier: MIT
 | 
						|
 | 
						|
//go:build !gogit
 | 
						|
 | 
						|
package git
 | 
						|
 | 
						|
func (repo *Repository) getBlob(id SHA1) (*Blob, error) {
 | 
						|
	if id.IsZero() {
 | 
						|
		return nil, ErrNotExist{id.String(), ""}
 | 
						|
	}
 | 
						|
	return &Blob{
 | 
						|
		ID:   id,
 | 
						|
		repo: repo,
 | 
						|
	}, nil
 | 
						|
}
 |