Skip to content

Commit 8050208

Browse files
authored
Merge pull request #247 from rspec/stick-to-last-release-for-doc
Stick to last commit from a release when generating new documentation
2 parents 11539fe + 06a6b0d commit 8050208

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ desc "Updates the rspec.github.io docs"
6363
task :update_docs, [:version, :branch, :website_path] do |t, args|
6464
abort "You must have ag installed to generate docs" if `which ag` == ""
6565
args.with_defaults(:website_path => "../rspec.github.io")
66-
run_command "git checkout #{args[:branch]} && git pull --rebase"
66+
run_command "git fetch --tags && git checkout `git tag | grep #{args[:version]} | tail -1`"
6767
each_project :except => (UnDocumentedProjects + SemverUnlinkedProjects) do |project|
6868
doc_destination_path = "#{args[:website_path]}/source/documentation/#{args[:version]}/#{project}/"
6969
cmd = "bundle install && \

0 commit comments

Comments
 (0)