From da23c02098c25776694b8e61d0299215855738bd Mon Sep 17 00:00:00 2001 From: Lou DeGenaro Date: Thu, 16 Nov 2023 11:32:31 -0500 Subject: [PATCH] fix: set name and email for commit Signed-off-by: Lou DeGenaro --- python/agau_repo_setup.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/python/agau_repo_setup.py b/python/agau_repo_setup.py index d04e8ab..b5f5ab7 100644 --- a/python/agau_repo_setup.py +++ b/python/agau_repo_setup.py @@ -300,6 +300,10 @@ def repo_create( run_cmd(cmd, gitdir) cmd = 'git add .' run_cmd(cmd, gitdir) + cmd = f'git config user.email {email_address}' + run_cmd(cmd, gitdir) + cmd = f'git config user.name {email_name}' + run_cmd(cmd, gitdir) cmd = 'git commit -m Configure' run_cmd(cmd, gitdir) cmd = 'git push' @@ -313,6 +317,10 @@ def repo_create( if install_content(repo, repo_oscal_type, gitdir): cmd = 'git add .' run_cmd(cmd, gitdir) + cmd = f'git config user.email {email_address}' + run_cmd(cmd, gitdir) + cmd = f'git config user.name {email_name}' + run_cmd(cmd, gitdir) cmd = 'git commit -m Content' run_cmd(cmd, gitdir) cmd = 'git push --set-upstream origin develop'