| Issue 2448: | Repo does not work with git preview versions | |
| 1 person starred this issue and may be notified of changes. | Back to list |
************************************************************
***** NOTE: THIS BUG TRACKER IS FOR GERRIT CODE REVIEW *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, INTERNAL *****
***** ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC. *****
***** THOSE ISSUE BELONG IN DIFFERENT ISSUE TRACKERS! *****
************************************************************
Affected Version:
all
What steps will reproduce the problem?
1. Installing git version 1.9.rc1
2. Doing a repo sync
What is the expected output? What do you see instead?
expected output is that it should sync the project.
instead after fetching projects, the repo sync breaks
Please provide any additional information below.
alex@evisceration:~/android$ repo sync
...
...
...
Fetching projects: 100% (424/424), done.
Traceback (most recent call last):
File "/home/alex/android/.repo/repo/main.py", line 418, in <module>
_Main(sys.argv[1:])
File "/home/alex/android/.repo/repo/main.py", line 394, in _Main
result = repo._Run(argv) or 0
File "/home/alex/android/.repo/repo/main.py", line 142, in _Run
result = cmd.Execute(copts, cargs)
File "/home/alex/android/.repo/repo/subcmds/sync.py", line 650, in Execute
fetched = self._Fetch(to_fetch, opt)
File "/home/alex/android/.repo/repo/subcmds/sync.py", line 368, in _Fetch
self._GCProjects(projects)
File "/home/alex/android/.repo/repo/subcmds/sync.py", line 377, in _GCProjects
has_dash_c = git_require((1, 7, 2))
File "/home/alex/android/.repo/repo/git_command.py", line 110, in git_require
git_version = git.version_tuple()
File "/home/alex/android/.repo/repo/git_command.py", line 93, in version_tuple
ver_str[len('git version '):].strip().split('-')[0].split('.')[0:3]
ValueError: invalid literal for int() with base 10: 'rc1'
alex@evisceration:~/android$ git --version
git version 1.9.rc1
it uses "rc1" as an int and therefore breaks.
Feb 2, 2014
#1
Eviscera...@gmail.com
Feb 2, 2014
(No comment was entered for this change.)
Status:
Invalid
|
|
| ► Sign in to add a comment |