Added refresh-heads command to fix #107