From e84af3d2281bdae098f8a195525162d32548f132 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Feb 06 2018 23:59:52 +0000 Subject: Set git user.name and user.email Signed-off-by: Patrick Uiterwijk --- diff --git a/scripts/mass-rebuild.py b/scripts/mass-rebuild.py index 2cccea4..50c9bcb 100755 --- a/scripts/mass-rebuild.py +++ b/scripts/mass-rebuild.py @@ -146,6 +146,17 @@ for pkg in pkgs: if runme(bumpspec, 'bumpspec', name, enviro): continue + # Set the git user.name and user.email + set_name = ['git', 'config', 'user.name', 'Fedora Release Engineering'] + set_mail = ['git', 'config', 'user.email', 'releng@fedoraproject.org'] + print('Setting git user.name and user.email') + if runme(set_name, 'set_name', name, enviro, + cwd=os.path.join(workdir, name)): + continue + if runme(set_mail, 'set_mail', name, enviro, + cwd=os.path.join(workdir, name)): + continue + # git commit commit = ['fedpkg', 'commit', '-s', '-p', '-m', comment] print('Committing changes for %s' % name)