northteam / git-repo

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

repo version not reported when invoking "repo --version" #177

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The bug report form requires to provide "Affected Version:", but there's no 
easy way to figure out which version I am running. The standard way, 
"--version" option, is not working.

Original issue reported on code.google.com by raske...@eligoenergy.com on 6 Aug 2014 at 9:23

GoogleCodeExporter commented 8 years ago
Is the message you are seeing this one?

error: repo is not installed.  Use "repo init" to install it here.

Original comment by onionj...@gmail.com on 9 Sep 2014 at 7:22

GoogleCodeExporter commented 8 years ago
> repo --version

Traceback (most recent call last):
  File "/mnt/var/git/dev/.repo/repo/main.py", line 500, in <module>
    _Main(sys.argv[1:])
  File "/mnt/var/git/dev/.repo/repo/main.py", line 476, in _Main
    result = repo._Run(argv) or 0
  File "/mnt/var/git/dev/.repo/repo/main.py", line 155, in _Run
    result = cmd.Execute(copts, cargs)
  File "/mnt/var/git/dev/.repo/repo/subcmds/version.py", line 36, in Execute
    print('repo version %s' % rp.work_git.describe(HEAD))
  File "/mnt/var/git/dev/.repo/repo/project.py", line 2510, in runner
    p.stderr))
error.GitError: repo describe: fatal: No names found, cannot describe anything.

Original comment by raske...@eligoenergy.com on 9 Sep 2014 at 9:18