git-svn: Fix branch detection when repository root is inaccessible