Without cibus

This commit is contained in:
2022-09-17 18:28:38 +02:00
parent e3a672f9f7
commit eef25c4c7a
6 changed files with 72 additions and 14 deletions

View File

@@ -30,6 +30,15 @@ type GitRepo struct {
repo *git.Repository
}
func (gr *GitRepo) GetHEAD() (string, error) {
head, err := gr.repo.Head()
if err != nil {
return "", err
}
return head.Name().Short(), nil
}
type GitAuth string
const (