create_symref(): do not assume pathname from git_path() persists long enough