Get the value of a string config variable.
The string is owned by the variable and should not be freed by the user.
where to look for the variable
the variable's name
pointer to the variable's value
GIT_SUCCESS or an error code