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

Add a git-setup command #431

Merged
merged 4 commits into from Jul 2, 2019
Merged

Add a git-setup command #431

merged 4 commits into from Jul 2, 2019

Conversation

@EtienneM
Copy link
Member

@EtienneM EtienneM commented Jul 2, 2019

Here is the commands added:

╰─$ cli --region osc-fr1 --app test-java-buildpack git-show
-----> Your application test-java-buildpack Git remote is: ssh://git@ssh.osc-fr1.scalingo.com:2200/test-java-buildpack.git

And

╰─$ git remote -v                                                                            
origin  git@github.com:Scalingo/cli.git (fetch)
origin  git@github.com:Scalingo/cli.git (push)
╰─$ cli --region osc-fr1 --app test-java-buildpack git-setup --remote toto 
-----> Successfully added the Git remote toto on test-java-buildpack
╰─$ git remote -v
origin  git@github.com:Scalingo/cli.git (fetch)
origin  git@github.com:Scalingo/cli.git (push)
toto    ssh://git@ssh.osc-fr1.scalingo.com:2200/test-java-buildpack.git (fetch)
toto    ssh://git@ssh.osc-fr1.scalingo.com:2200/test-java-buildpack.git (push)

If run from a directory with no Git initialized:

╰─$ ./cli/cli --region osc-fr1 --app test-java-buildpack git-setup --remote toto
 !     An error occured:
       fail to initialize the Git repository: repository does not exist

Fix #430

@EtienneM EtienneM requested a review from johnsudaar Jul 2, 2019
@EtienneM EtienneM marked this pull request as ready for review Jul 2, 2019
Copy link
Member

@johnsudaar johnsudaar left a comment

LGTM

Loading

@johnsudaar johnsudaar merged commit c358575 into master Jul 2, 2019
@EtienneM EtienneM deleted the fix/430/git_setup branch Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

2 participants