Skip to content

Commit

Permalink
Merge branch 'issue_182' into candidate
Browse files Browse the repository at this point in the history
  • Loading branch information
dalehenrich committed May 15, 2018
2 parents 8537e70 + 3e8bbf5 commit 83bf9cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/tonel/Rowan-Tools/RwPrjCloneTool.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ RwPrjCloneTool >> cloneSpecification: aRwSpecification gitRootPath: gitRootPath

| gitTool response projectUrl gitRepoPath cloneUrl cloneOption checkout segments |
self specification: aRwSpecification.
projectUrl := RwUrl fromString: specification projectUrl.
gitRepoPath := gitRootPath , '/' , projectUrl segments last.
gitRepoPath := gitRootPath , '/' , aRwSpecification specName.
self
_validateForGitRootPathForSpecification: gitRootPath
gitRepoDir: gitRepoPath
Expand All @@ -76,6 +75,7 @@ RwPrjCloneTool >> cloneSpecification: aRwSpecification gitRootPath: gitRootPath
the clone is already present."
^ msg ].
gitTool := Rowan gitTools.
projectUrl := RwUrl fromString: specification projectUrl.
cloneUrl := useSsh
ifTrue: [ 'git@' , projectUrl authority , ':' ]
ifFalse: [ 'https://' , projectUrl authority , '/' ].
Expand All @@ -93,6 +93,7 @@ RwPrjCloneTool >> cloneSpecification: aRwSpecification gitRootPath: gitRootPath
checkout
ifNotNil: [ Rowan projectTools checkout checkoutSpecification: specification ].
^ specification

]

{ #category : 'smalltalk api' }
Expand Down

0 comments on commit 83bf9cf

Please sign in to comment.