2017年10月30日 星期一

fatal: empty ident name (for ) not allowed

Issue
-----
    yulin@AIG:/work/yulin/w9250$ repo init -u git@172.16.201.30:mdm9650/manifests.git --config-name -b master -m UMC-9250W.xml
   
    Traceback (most recent call last):
      File "/work/yulin/w9250/.repo/repo/main.py", line 531, in
        _Main(sys.argv[1:])
      File "/work/yulin/w9250/.repo/repo/main.py", line 507, in _Main
        result = repo._Run(argv) or 0
      File "/work/yulin/w9250/.repo/repo/main.py", line 180, in _Run
        result = cmd.Execute(copts, cargs)
      File "/work/yulin/w9250/.repo/repo/subcmds/init.py", line 404, in Execute
        self._ConfigureUser()
      File "/work/yulin/w9250/.repo/repo/subcmds/init.py", line 298, in _ConfigureUser
        name  = self._Prompt('Your Name', mp.UserName)
      File "/work/yulin/w9250/.repo/repo/project.py", line 784, in UserName
        self._LoadUserIdentity()
      File "/work/yulin/w9250/.repo/repo/project.py", line 797, in _LoadUserIdentity
        u = self.bare_git.var('GIT_COMMITTER_IDENT')
      File "/work/yulin/w9250/.repo/repo/project.py", line 2747, in runner
        (self._project.name, name, p.stderr))
    error.GitError: manifests var:
    *** Please tell me who you are.
   
    Run
   
      git config --global user.email "you@example.com"
      git config --global user.name "Your Name"
   
    to set your account's default identity.
    Omit --global to set the identity only in this repository.
   
    fatal: empty ident name (for ) not allowed

Solution
--------
    Do below before 'repo init ...'
        git config --global user.email "you@example.com"
        git config --global user.name "Your Name"

沒有留言: