Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

altered scm_repository assignment in getOrCreateSCMRepository to acco…

…unt for empty scm_repository form item
  • Loading branch information...
commit 4bb245b87a08433a5841db952d7bfeec142db15e 1 parent ac1bd99
@klehman-rally klehman-rally authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  services/rally.rb
View
2  services/rally.rb
@@ -97,7 +97,7 @@ def validateWorkspace(workspace)
end
def getOrCreateRepo(scm_repository, repo, repo_owner)
- scm_repository = scm_repository == nil ? repo : scm_repository
+ scm_repository = repo if (scm_repository.nil? or scm_repository == "")
repo_item = rallyQuery('SCMRepository', 'Name', 'Name = "%s"' % scm_repository)
return itemRef(repo_item) unless repo_item.nil?
repo_info = { 'Workspace' => @wksp_ref, 'Name' => scm_repository, 'SCMType' => 'GitHub',
Please sign in to comment.
Something went wrong with that request. Please try again.