Skip to content

Commit 7a7507e

Browse files
committed
Fetch tags before grepping
1 parent 954ff47 commit 7a7507e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ task :update_docs, [:version, :branch, :website_path] do |t, args|
6363
abort "You must have ag installed to generate docs" if `which ag` == ""
6464
args.with_defaults(:website_path => "../rspec.github.io")
6565
each_project :except => (UnDocumentedProjects) do |project|
66-
latest_release = `git tag | grep '^v\\\d.\\\d.\\\d$' | grep v#{args[:version]} | tail -1`
66+
latest_release = `git fetch --tags && git tag | grep '^v\\\d.\\\d.\\\d$' | grep v#{args[:version]} | tail -1`
6767

6868
if latest_release.empty?
6969
next "No release found for #{args[:version]} in #{`pwd`}"
7070
end
7171

72-
`git fetch --tags && git checkout #{latest_release}`
72+
`git checkout #{latest_release}`
7373
doc_destination_path = "#{args[:website_path]}/source/documentation/#{args[:version]}/#{project}/"
7474
cmd = "bundle install && \
7575
RUBYOPT='-I#{args[:website_path]}/lib' bundle exec yard \

0 commit comments

Comments
 (0)