From 08989071e8c47bb75f3a5f171d821b805380baef Mon Sep 17 00:00:00 2001 From: Athos Ribeiro Date: Fri, 23 Oct 2020 12:00:17 +0200 Subject: Fix default actor name handling In c96476b, the new default_name nested function does not contain a retun statement. This leads to an issue when the environment variables are not present, where the actor name would not be set. Signed-off-by: Athos Ribeiro --- git/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git/util.py') diff --git a/git/util.py b/git/util.py index 44eb0e51..04c96789 100644 --- a/git/util.py +++ b/git/util.py @@ -591,7 +591,7 @@ class Actor(object): return user_id def default_name(): - default_email().split('@')[0] + return default_email().split('@')[0] for attr, evar, cvar, default in (('name', env_name, cls.conf_name, default_name), ('email', env_email, cls.conf_email, default_email)): -- cgit v1.2.1