diff options
author | Michael Muré <batolettre@gmail.com> | 2022-11-16 14:41:26 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2022-11-16 14:41:26 +0100 |
commit | 3c0fcb745634d28138a6a3d220d59e5766198061 (patch) | |
tree | 02d8a288d7468a6b3262e55551061d3055f78483 | |
parent | b02ba48ad64bd246cefc4f4646b48676b645220a (diff) | |
download | git-bug-3c0fcb745634d28138a6a3d220d59e5766198061.tar.gz |
gogit: fix incorrect loader handling
-rw-r--r-- | entities/identity/identity.go | 2 | ||||
-rw-r--r-- | repository/gogit.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/entities/identity/identity.go b/entities/identity/identity.go index 0a7642af..fd9da062 100644 --- a/entities/identity/identity.go +++ b/entities/identity/identity.go @@ -22,7 +22,7 @@ const identityConfigKey = "git-bug.identity" var ErrNonFastForwardMerge = errors.New("non fast-forward identity merge") var ErrNoIdentitySet = errors.New("No identity is set.\n" + "To interact with bugs, an identity first needs to be created using " + - "\"git bug user create\"") + "\"git bug user create\" or adopted with \"git bug user adopt\"") var ErrMultipleIdentitiesSet = errors.New("multiple user identities set") func NewErrMultipleMatchIdentity(matching []entity.Id) *entity.ErrMultipleMatch { diff --git a/repository/gogit.go b/repository/gogit.go index 7dd5a48d..c1f1fe37 100644 --- a/repository/gogit.go +++ b/repository/gogit.go @@ -80,7 +80,7 @@ func OpenGoGitRepo(path, namespace string, clockLoaders []ClockLoader) (*GoGitRe localStorage: osfs.New(filepath.Join(path, namespace)), } - loaderToRun := make([]ClockLoader, len(clockLoaders)) + loaderToRun := make([]ClockLoader, 0, len(clockLoaders)) for _, loader := range clockLoaders { loader := loader allExist := true |