-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Add git:unlock command #4465
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
Add git:unlock command #4465
Conversation
|
The unlock shell script needs to be executable. I would just error with a message telling the user to call git:unlock if no tty is present. |
|
@josegonzalez Thanks for feedbacks. Fixed both issues and successfully tested Edit : only question left is how to fix the failing pipeline? |
josegonzalez
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also write a test? Should just mock creating the clone directory.
The test might fail on gitlab because they don't support tty, so no need to check for the inline unlock, just want to know that the regular git:unlock command does what we expect.
|
@josegonzalez added the prompt and also --force flag for cases where it would make sense to bypass the prompt. Added tests also, but when I was running them they are failing with : Same is happening on other git test files as well and I am not sure how to fix that. Edit regarding last linting issue, I tried running |
|
Tests cant be run on OSX, they need to run in a Linux VM (the included one is fine). |
|
@josegonzalez But I would still appreciate some help with tests and fixing the lint issue. |
|
Gonna take over the PR from here. |
# History ## 0.24.2 Install/update via the bootstrap script: ```shell wget https://raw.githubusercontent.com/dokku/dokku/v0.24.2/bootstrap.sh sudo DOKKU_TAG=v0.24.2 bash bootstrap.sh ``` ### Bug Fixes - #4473: @josegonzalez Add the correct log mount for app logs ### Other - #4465: @Akirtovskis Add git:unlock command - #4470: @dependabot-preview[bot] chore(deps): bump socket.io from 3.1.2 to 4.0.0 in /tests/apps/.websocket.disabled - #4462: @dependabot-preview[bot] chore(deps-dev): bump heroku/heroku-buildpack-php from 189 to 190 in /tests/apps/php
Related issue : #4458
To solve the cloning issue :
ttyis present (?)fn-git-cloneas we now have check for that ingit:syncQuestions that I still have :
git:unlock appseparately from vm it is not working and I seegit:unlockis not a dokku command. Isthere something obviuos I missed in command creation flow?
no ttycases?dokku_log_fail "Missing tty, try running ssh -t which will allocate new tty for you"