Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/release4.11'
Browse files Browse the repository at this point in the history
Conflicts:
	Gemfile.lock
  • Loading branch information
szmyd committed Dec 27, 2013
2 parents 0b1eaab + 113fe41 commit 68fcf85
Showing 1 changed file with 2 additions and 7 deletions.
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 68fcf85

@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: #59326(2013-12-27_01-07-43), repo: right_scraper, branch/tag: master, sha: 68fcf85, 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: #59326(2013-12-27_01-07-43), repo: right_scraper, branch/tag: master, sha: 68fcf85, status: PASS, reason: Was a merge commit

Please sign in to comment.