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

Simplify track creation #6991

Merged
merged 11 commits into from
Jul 23, 2024
Merged

Simplify track creation #6991

merged 11 commits into from
Jul 23, 2024

Conversation

ErikSchierboom
Copy link
Member

With this PR, one can just pass in a track's slug to create a new track (as opposed to passing in the repo url).

It also adds the track directory to the git safe directories list, and the triggers a new deploy, which is needed for the permissions to apply.

@ErikSchierboom ErikSchierboom requested a review from iHiD as a code owner July 12, 2024 07:42

private
def safe_directory_already_set?
Kernel.system("git config --global --get safe.directory #{safe_directory}")
Copy link
Member Author

Choose a reason for hiding this comment

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

According to the docs, system will return true when the exit code is 0, and false when it isn't zero. And conveniently, the git command returns 1 when the safe directory isn't set, and 0 when it is

@ErikSchierboom ErikSchierboom merged commit 66b9728 into main Jul 23, 2024
39 checks passed
@ErikSchierboom ErikSchierboom deleted the simplify-create-track branch July 23, 2024 11:11
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.

2 participants