Skip to content

Commit

Permalink
Resolved issue with failing to commit and push, a bug introduced in v…
Browse files Browse the repository at this point in the history
…1.20.3. (#224)
  • Loading branch information
cicirello authored Sep 7, 2023
1 parent a1eebf9 commit 7192a0d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions src/UserStatistician.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down

0 comments on commit 7192a0d

Please sign in to comment.