Skip to content

Commit

Permalink
Merge remote branch 'origin/sapphire_13_20_acu145670_escape_git_branc…
Browse files Browse the repository at this point in the history
…h_names' into release4.11
  • Loading branch information
ryanwilliamson committed Dec 27, 2013
2 parents 92cc05e + 0a7b1dc commit 113fe41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
@@ -1,6 +1,6 @@
GIT
remote: git@github.com:rightscale/right_git.git
revision: 69814a78d191755991cc8983283b86be723cfa6f
revision: d50fb377f042d6942b4b043d095f2576c59f002b
branch: release4.11
specs:
right_git (0.0.1)
Expand Down
9 changes: 2 additions & 7 deletions lib/right_scraper/retrievers/git.rb
Expand Up @@ -25,6 +25,7 @@
require 'right_scraper/retrievers'

require 'fileutils'
require 'shellwords'
require 'tmpdir'
require 'right_git'
require 'right_support'
Expand Down Expand Up @@ -157,8 +158,6 @@ def do_update_tag

DEFAULT_BRANCH_NAME = 'master'

GIT_REVISION_REGEX = /^[A-Za-z0-9._-]+$/

def git_repo_for(dir)
::RightGit::Git::Repository.new(
dir,
Expand Down Expand Up @@ -250,11 +249,7 @@ def do_clean_all(git_repo)

def resolve_revision
revision = @repository.tag.to_s.strip
revision = DEFAULT_BRANCH_NAME if revision.empty?
unless revision =~ GIT_REVISION_REGEX
raise RetrieverError, "Revision reference contained illegal characters: #{revision.inspect}"
end
revision
revision.empty? ? DEFAULT_BRANCH_NAME : revision.shellescape
end

# Validates the given revision string to ensure it is safe and sane before
Expand Down

2 comments on commit 113fe41

@flexera-ci
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RS-COMPLIANCE: COMPLIANCE-AUTHORIZATION-PASS Build: #59323(2013-12-27_00-47-26), repo: right_scraper, branch/tag: release4.11, sha: 113fe41, status: PASS, reason: Master/release branch and pusher is on the whitelist.

@flexera-ci
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RS-COMPLIANCE: COMPLIANCE-COMMITMESSAGE-PASS Build: #59323(2013-12-27_00-47-26), repo: right_scraper, branch/tag: release4.11, sha: 113fe41, status: PASS, reason: Was a merge commit

Please sign in to comment.