diff options
| -rw-r--r-- | lib/tasks/themes.rake | 2 | 
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}"  | 
