milestone 2 complete
This commit is contained in:
@ -203,3 +203,8 @@ func (gb *GitBackend) GetCommit(sha string) (*object.Commit, error) {
|
||||
|
||||
return commit, nil
|
||||
}
|
||||
|
||||
// HashFromString converts a string SHA to a plumbing.Hash
|
||||
func HashFromString(sha string) plumbing.Hash {
|
||||
return plumbing.NewHash(sha)
|
||||
}
|
||||
|
Reference in New Issue
Block a user