Skip to content

Commit

Permalink
On pull: create new wiki page if no one exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
Luis Hurtado committed Nov 10, 2012
1 parent f84d4c9 commit 62f4d8f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/gitnesse.rb
Expand Up @@ -131,7 +131,11 @@ def load_feature_files_into_wiki(tmp_dir)
feature_content = File.open(feature_file, "r") { |file| file.read }
wiki_page = wiki.page(page_name)

update_wiki_page(wiki_page, feature_name, feature_content)
if wiki_page
update_wiki_page(wiki_page, feature_name, feature_content)
else
create_wiki_page(page_name, feature_content)
end
end
end

Expand Down

0 comments on commit 62f4d8f

Please sign in to comment.