don't allow file paths to .git directory
truncate each compontent of path