Error Log:
tharaka@tharaka-ubuntu14:~/android/system$ repo init -u https://github.com/CyanogenMod/android.git -b cm-11.0
Traceback (most recent call last):
File “/home/tharaka/android/system/.repo/repo/main.py”, line 506, in <module>
_Main(sys.argv[1:])
File “/home/tharaka/android/system/.repo/repo/main.py”, line 482, in _Main
result = repo._Run(argv) or 0
File “/home/tharaka/android/system/.repo/repo/main.py”, line 161, in _Run
result = cmd.Execute(copts, cargs)
File “/home/tharaka/android/system/.repo/repo/subcmds/init.py”, line 395, in Execute
self._ConfigureUser()
File “/home/tharaka/android/system/.repo/repo/subcmds/init.py”, line 289, in _ConfigureUser
name = self._Prompt(‘Your Name’, mp.UserName)
File “/home/tharaka/android/system/.repo/repo/project.py”, line 654, in UserName
self._LoadUserIdentity()
File “/home/tharaka/android/system/.repo/repo/project.py”, line 667, in _LoadUserIdentity
u = self.bare_git.var(‘GIT_COMMITTER_IDENT’)
File “/home/tharaka/android/system/.repo/repo/project.py”, line 2533, in runner
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: unable to auto-detect email address (got ‘tharaka@tharaka-ubuntu14.(none)’)
Solution:
- Goto —> http://www.github.com –> create an account at github ; the account name and the email address you are using in creating the account need to config the git repository.
- Open Terminal and run the following command giving corresponding email and username.
git config –global user.email “you@example.com”
git config –global user.name “Your Name”
Cheers! 🙂