aboutsummaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-02-08 22:04:25 +0100
committerMichael Muré <batolettre@gmail.com>2020-02-08 22:04:25 +0100
commit8773929f963b847841fac0d3c42d6278de69b79c (patch)
tree5f1b0f49179ef811c9dbb351b37d75965f423b0b /bridge
parent2e7ac569ad3146e5fa22907d8a4e63d2a524533b (diff)
downloadgit-bug-8773929f963b847841fac0d3c42d6278de69b79c.tar.gz
github: make sure to have a name
Diffstat (limited to 'bridge')
-rw-r--r--bridge/github/import.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/bridge/github/import.go b/bridge/github/import.go
index 6a4c0110..ea0ccba3 100644
--- a/bridge/github/import.go
+++ b/bridge/github/import.go
@@ -534,6 +534,11 @@ func (gi *githubImporter) ensurePerson(repo *cache.RepoCache, actor *actor) (*ca
case "Bot":
}
+ // Name is not necessarily set, fallback to login as a name is required in the identity
+ if name == "" {
+ name = string(actor.Login)
+ }
+
i, err = repo.NewIdentityRaw(
name,
email,