terra-ops / terra-cli

The Terra Command Line Interface
http://terra.readthedocs.org
GNU General Public License v2.0
48 stars 17 forks source link

".git" gets appended to git url without checking #66

Closed badri closed 8 years ago

badri commented 8 years ago

the ".git" string gets appended to the git URL irrespective of whether it is ssh or not.

$ terra app:add d7 git@github.com:jonpugh/terra-drush-make.git --description="agile deploy"
Host? [manomadhu] 
 Name:        d7                                          
 Description: agile deploy                                
 Repo:        git@github.com:jonpugh/terra-drush-make.git 
 Host:        manomadhu                                   
App saved
Create an environment? [y\N] 

$ terra environment:add d7 local ~/Apps/d7-local
Cloning into '/home/lakshmi/Apps/d7-local'...
ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Unable to clone repository. Check app settings and try again.

I'm able to add a new environment if I don't add the .git in the end.

$ terra app:add d7 git@github.com:jonpugh/terra-drush-make --description="agile deploy"
Host? [manomadhu] 
 Name:        d7                                      
 Description: agile deploy                            
 Repo:        git@github.com:jonpugh/terra-drush-make 
 Host:        manomadhu                               
App saved
Create an environment? [y\N] 

$ terra environment:add d7 local ~/Apps/d7-local -v 3
Cloning into '/home/lakshmi/Apps/d7-local'...
* master
On branch master
Your branch is up-to-date with 'origin/master'.

nothing to commit, working directory clean
Beginning to build drupal.make.                                      [ok]
jonpugh commented 8 years ago

Sorry about that! I've just now pushed a fix for it.

Please pull the latest code and try again?

badri commented 8 years ago

works!