Skip to content

Commit

Permalink
Updating the git safe directory to include /data/src when required
Browse files Browse the repository at this point in the history
  • Loading branch information
sammyd committed Jan 31, 2024
1 parent c7fb8cb commit bf1fb3d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/robles
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ require_relative '../config/application'
if GITHUB_WORKSPACE.present?
# Add the workspace as a safe directory to global git if we're inside a GitHub Action
Git.global_config('safe.directory', GITHUB_WORKSPACE)
else
# Add the default mounted directory as safe
# Note that this is used in CI for slide generation for, well, reasons
Git.global_config('safe.directory', '/data/src')
end

begin
Expand Down

0 comments on commit bf1fb3d

Please sign in to comment.