git: remove is_bare_repository_cfg global variable
The is_bare_repository_cfg global variable is used for storing a bare repository setting, either through the config, an env var, or the commandline.
Instead, add a member to the repository struct to keep track of the setting there.
Signed-off-by: John Cai johncai86@gmail.com