Add metadata instance to context for accessing git config.