diff options
author | Michael Muré <batolettre@gmail.com> | 2022-07-31 14:38:32 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2022-07-31 14:38:32 +0200 |
commit | d179b8b7ec7815ccac73e00f35f5cfbdc4ddbe2e (patch) | |
tree | d3faa7217cb287c7b20f2769f5c5808373aca63b /repository | |
parent | 3d454d9dc8ba2409046c0938618a70864e6eb8ef (diff) | |
download | git-bug-d179b8b7ec7815ccac73e00f35f5cfbdc4ddbe2e.tar.gz |
bug: fix an issue where Id would be used, then changed due to metadata
Diffstat (limited to 'repository')
-rw-r--r-- | repository/gogit.go | 2 | ||||
-rw-r--r-- | repository/repo.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/repository/gogit.go b/repository/gogit.go index 71cddfb2..d94965cb 100644 --- a/repository/gogit.go +++ b/repository/gogit.go @@ -235,7 +235,7 @@ func (repo *GoGitRepo) Keyring() Keyring { return repo.keyring } -// GetUserName returns the name the the user has used to configure git +// GetUserName returns the name the user has used to configure git func (repo *GoGitRepo) GetUserName() (string, error) { return repo.AnyConfig().ReadString("user.name") } diff --git a/repository/repo.go b/repository/repo.go index 1994f6dd..2f90b437 100644 --- a/repository/repo.go +++ b/repository/repo.go @@ -60,9 +60,9 @@ type RepoKeyring interface { Keyring() Keyring } -// RepoCommon represent the common function the we want all the repo to implement +// RepoCommon represent the common function we want all repos to implement type RepoCommon interface { - // GetUserName returns the name the the user has used to configure git + // GetUserName returns the name the user has used to configure git GetUserName() (string, error) // GetUserEmail returns the email address that the user has used to configure git. |