aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tasks
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2012-08-30 16:23:34 +0100
committerLouise Crow <louise.crow@gmail.com>2012-08-30 16:23:34 +0100
commit62a20d6696275a6f83ca4cf835c487873ca89c99 (patch)
treef0d27526768e6a50d1fccf17e5a723324441bb13 /lib/tasks
parenta821a3698e67b3d07434877065376bd6fcd28a9e (diff)
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.release/0.6.5
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/themes.rake2
1 files changed, 1 insertions, 1 deletions
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}"