Fix the broken index after ojluni_refresh_files

Apparently, index.repo.reset(paths) doesn't reset correctly,
probably due to a GitPython bug. Use index.repo.reset() to
clear the entire index

Also, a fix to allow running `ojluni_refresh_files` from
any libcore/ subdirectory

Bug: 111603149
Test: ojluni_refresh_files
Change-Id: I8823b9a8d819ed04a9bd3966d59729c6d58ae067
1 file changed
tree: 47bf362dc10f3e4ddf9d7373f21d401a6284cf18
  1. ojluni/
  2. tools/
  3. EXPECTED_UPSTREAM