|
func (repo *Repository) commitsCount(id sha1) (int, error) {
|
|
func (repo *Repository) commitsCount(id sha1) (int, error) {
|
|
stdout, stderr, err := com.ExecCmdDirBytes(repo.Path, "git", "log", "--pretty=format:''", id.String())
|
|
stdout, stderr, err := com.ExecCmdDirBytes(repo.Path, "git", "log", "--pretty=format:''", id.String())
|
|
return 0, errors.New(string(stderr))
|
|
return 0, errors.New(string(stderr))
|