gollum/gollum — pull request #698 by ddeyoung (2013-05-26 14:32:59+00:00)
Title: Leaving off the leading slash in a page name with a subdirectory will corrupt the repository

Creating a page with the name `/apples/fuji` works as expected, but removing the leading slash `apples/fuji` will corrupt the git repo after the page has been saved and all git commands will return `fatal: corrupt tree file`.

Steps to reproduce:
1. Create a new page with path name `apples/fuji`
2. Add content to the new page and save
3. The save will redirect to the create page view for `apples/fuji`
4. Going to the root of the wiki will redirect to the create `home` page view
5. `git status` (or any git command) will result in `fatal: corrupt tree file`