From 7192a0d1f88e43c2555a324a023a0a2cf15411db Mon Sep 17 00:00:00 2001 From: "Vincent A. Cicirello" Date: Thu, 7 Sep 2023 16:48:05 -0400 Subject: [PATCH] Resolved issue with failing to commit and push, a bug introduced in v1.20.3. (#224) --- CHANGELOG.md | 6 ++++++ src/UserStatistician.py | 3 +++ 2 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b762fd1d..5454a64e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### CI/CD +## [1.20.5] - 2023-09-07 + +### Fixed +* Resolved issue with failing to commit and push, a bug introduced in v1.20.3. + + ## [1.20.4] - 2023-09-07 ### Fixed diff --git a/src/UserStatistician.py b/src/UserStatistician.py index dba9dff5..5f30dbc9 100755 --- a/src/UserStatistician.py +++ b/src/UserStatistician.py @@ -85,6 +85,9 @@ def commitAndPush(filename, name, login, failOnError): name - The user's name. login - The user's login id. """ + # Resolve issue related to user in Docker container vs owner of repository + executeCommand( + ["git", "config", "--global", "--add", "safe.directory", "/github/workspace"]) # Make sure this isn't being run during a pull-request. result = executeCommand( ["git", "symbolic-ref", "-q", "HEAD"])