Skip to content

Commit 447e895

Browse files
committed
Deal with nil branch
1 parent 32057eb commit 447e895

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
@@ -236,9 +236,9 @@ task :update_docs, [:version, :website_path, :branch] do |_t, args|
236236
`git fetch --tags && git tag -l "v#{args[:version]}*" | grep v#{args[:version]} | tail -1`
237237
end
238238

239-
if args[:branch].empty? && latest_release.empty?
239+
if (args[:branch].nil? || args[:branch].empty?) && latest_release.empty?
240240
skipped << project
241-
elsif args[:branch].empty?
241+
elsif args[:branch].nil? || args[:branch].empty?
242242
projects[project] = latest_release
243243
else
244244
projects[project] = args[:branch]

0 commit comments

Comments
 (0)