Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration::runGitCommand() now respects base-path #466

Merged
merged 1 commit into from
Jul 28, 2020
Merged

Configuration::runGitCommand() now respects base-path #466

merged 1 commit into from
Jul 28, 2020

Conversation

discordier
Copy link
Contributor

This resolves a problem when having the configuration file not within the repository itself (eg. in CI environments).

Now the configuration is using the base-path for running all git commands.

Fixes #465

@discordier discordier changed the title Configuration::runGitCommand() now respects base-dir Configuration::runGitCommand() now respects base-path Jun 22, 2020
@discordier
Copy link
Contributor Author

Failing tests appear to be unrelated to my changes - I have no clue how to address them.

@theofidry
Copy link
Member

Thanks, will try to check this weekend!

@discordier
Copy link
Contributor Author

Is there anything I can do to assist?

'git-commit-short' => 'git_commit_short',
'git-tag' => 'git_tag',
'git-version' => 'git_version',
'replacements' => ['rand' => $rand = random_int(0, getrandmax())],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can skip the non-necessary values replacement, datetime & date-format

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed with 4aa9f90

@theofidry
Copy link
Member

Sorry I appear to have forgotten to submit the review...

I'm away this week, once back I'll have a look at #468 and hopefully this PR will be green and ready to merge :)

This resolves a problem when having the configuration file not within
the repository itself (eg. in CI environments).

Now the configuration is using the `base-path` for running all git
commands.
@discordier
Copy link
Contributor Author

Rebased master, hopefully CI is green now. 😨

@theofidry theofidry merged commit e708d75 into box-project:master Jul 28, 2020
@theofidry
Copy link
Member

It does :) Thanks very much @discordier

@discordier discordier deleted the hotfix/issue-465 branch July 28, 2020 08:45
@discordier
Copy link
Contributor Author

Thanks for merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Configuration::runGitCommand() should respect base-dir
2 participants