gollum / rugged_adapter

Adapter to make gollum use Rugged (libgit2) at the backend.
MIT License
36 stars 27 forks source link

Returning nil if the current dir is not found #28

Closed fjsanpedro closed 5 years ago

fjsanpedro commented 6 years ago

It seems there is a problem with versions when a gollum_page is moved to a different directory using git. The steps to reproduce is this:

In this PR, what I do is returning nil if the current_commit does not have the dir, then the commit_touches_path? will return true and the build_log will add the move commit. This way the last_version and version of the gollum page will be pointing to the same commit.

bartkamphorst commented 6 years ago

Thanks for the PR. I just have a minor suggestion regarding style; otherwise I think the PR is ready for merging. 👍

fjsanpedro commented 6 years ago

@bartkamphorst PR updated 😉

dometto commented 5 years ago

@bartkamphorst ready to merge then?

bartkamphorst commented 5 years ago

I suppose so!

dometto commented 5 years ago

Done. Sorry for the wait @fjsanpedro!

fjsanpedro commented 5 years ago

no worries, thanks @dometto 😉