diff options
author | paul.t <paul.t@gembaadvantage.com> | 2021-12-15 06:32:38 +0000 |
---|---|---|
committer | paul.t <paul.t@gembaadvantage.com> | 2021-12-15 06:32:38 +0000 |
commit | 8d923a6fb77d7916da2df33e5a65e038cceef4e1 (patch) | |
tree | 5a823fa6e7ffd5e38df105cadcab5a0d6b7475e9 /repository.go | |
parent | b0f5eb894deb6d6a1051d697f0809082abfad395 (diff) | |
parent | 53a714bdc90026135e2f2ada1c4d6c925b2733cd (diff) | |
download | go-git-8d923a6fb77d7916da2df33e5a65e038cceef4e1.tar.gz |
Merge branch 'master' into codecommit-ref-delta
Diffstat (limited to 'repository.go')
-rw-r--r-- | repository.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/repository.go b/repository.go index d3fbf97..e8eb53f 100644 --- a/repository.go +++ b/repository.go @@ -56,7 +56,7 @@ var ( ErrWorktreeNotProvided = errors.New("worktree should be provided") ErrIsBareRepository = errors.New("worktree not available in a bare repository") ErrUnableToResolveCommit = errors.New("unable to resolve commit") - ErrPackedObjectsNotSupported = errors.New("Packed objects not supported") + ErrPackedObjectsNotSupported = errors.New("packed objects not supported") ) // Repository represents a git repository @@ -1547,7 +1547,7 @@ func (r *Repository) ResolveRevision(rev plumbing.Revision) (*plumbing.Hash, err } if c == nil { - return &plumbing.ZeroHash, fmt.Errorf(`No commit message match regexp : "%s"`, re.String()) + return &plumbing.ZeroHash, fmt.Errorf("no commit message match regexp: %q", re.String()) } commit = c |