update-index no path exception should say full path
update_index() should throw if pass dir