A fix to gitshelve for permission issues.
A fix to gitshelve for permission issues.

The bug happens when importing a tree: if a blob/tree has its permissions set
to something other than 100644/040000, gitshelve crashes without any explicit
description of the failure (only Assertion Error is thrown at line 226)

I changed the regex to match any mode and raise an exception if encountered
mode is not the expected one

mcepl/git-issues,duplys/git-issues,ktf/git-issues