HenningSchroeder / git-repo

Automatically exported from code.google.com/p/git-repo
Apache License 2.0
0 stars 0 forks source link

A feature for repo: a opption to choose a different file of .gitconfig #216

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Affected Version:v1.12.32
Environment:
Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-29-generic x86_64)
git version 1.8.3.2

I have a demand about the repo which the default configfile is '~/.gitconfig' 
that is add a opption to choose the suitable configfile.
Because sometimes we need to download the whole latest code from the gerrit 
that we must choose the protocol of ssh, and sometimes we need to use the 
protocol of http that can lighten the load of the gerrit.
The source in the git_config.py is as followings:
  def ForUser(cls):
    if cls._ForUser is None:
      cls._ForUser = cls(configfile = os.path.expanduser('~/.gitconfig'))
    return cls._ForUser

Original issue reported on code.google.com by xiuyun...@hisilicon.com on 28 Nov 2015 at 6:11