I understand the call to `ResolveGeogitDir` is to let the command being run when no repository is available, but can you add a comment on why getIndex().getDatabase().open() is being called from here?