From 62a20d6696275a6f83ca4cf835c487873ca89c99 Mon Sep 17 00:00:00 2001 From: Louise Crow Date: Thu, 30 Aug 2012 16:23:34 +0100 Subject: Be more specific about the output from git remote-ls - anything except a single commit hash and tag should cause us just to pull head. --- lib/tasks/themes.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/tasks/themes.rake') diff --git a/lib/tasks/themes.rake b/lib/tasks/themes.rake index 37dfba85c..2b1dbb3a9 100644 --- a/lib/tasks/themes.rake +++ b/lib/tasks/themes.rake @@ -21,7 +21,7 @@ namespace :themes do usage_tag = "use-with-alaveteli-#{ALAVETELI_VERSION}" # Query the remote repository passing flags for tags version_tag = `git ls-remote --tags #{uri} #{usage_tag}` - if !version_tag.blank? + if /^[a-z0-9]+\s+refs\/tags\/#{Regexp.escape(usage_tag)}$/.match(version_tag) # If we got a tag, pull that instead of HEAD puts "Using tag #{usage_tag}" if verbose base_cmd += " refs/tags/#{usage_tag}" -- cgit v1.2.3