What version are you running?
2.0.5
What's the URL of the page containing the problem?
Bug on client (RBTools)
What steps will reproduce the problem?
1. Made some code changes and committed it against a Git repository
2. Used 'rbt post' via git bash and got the following output:
$ rbt post --debug
>>> RBTools 0.6.2
>>> Python 2.7.8 (default, Jun 30 2014, 16:08:48) [MSC v.1500 64 bit (AMD64)]
>>> Running on Windows-7-6.1.7601-SP1
>>> Home = C:\Users\alefiya.jerwalla\AppData\Roaming
>>> Current directory = C:\Users\alefiya.jerwalla\Source\Repos\TFSManagement
>>> Checking for a Git repository...
>>> Running: git rev-parse --git-dir
>>> Running: git config core.bare
>>> Running: git rev-parse --show-toplevel
>>> Running: git symbolic-ref -q HEAD
>>> Running: git config --get branch.TASK_1472.merge
>>> Command exited with rc 1: ['git', 'config', '--get', 'branch.TASK_1472.merge']
---
>>> Running: git config --get branch.TASK_1472.remote
>>> Command exited with rc 1: ['git', 'config', '--get', 'branch.TASK_1472.remote']
---
>>> Running: git config --get remote.origin.url
>>> repository info: Path: http://vm-morpheus:8080/tfs/defaultcollection/Morpheus/_git/TFSManagement, Base path: , Supports changesets: False
>>> Making HTTP GET request to http://codereview-linux.jsitelecom.com/api/
>>> Running: git rev-parse refs/heads/TASK_1472
>>> Running: git merge-base 3a1269a00716d36d0668ab7238aca5208188ab1d origin/master
>>> Running: git rev-parse 6b06604393de8e0439ce22f83879c887e170c9b5
>>> Running: git status --porcelain --untracked-files=no
>>> Running: git diff --no-color --full-index --ignore-submodules 6b06604393de8e0439ce22f83879c887e170c9b5..3a1269a00716d36d0668ab7238aca5208188ab1d -M
>>> Running: git log --reverse --pretty=format:%s%n%n%b ^6b06604393de8e0439ce22f83879c887e170c9b5 3a1269a00716d36d0668ab7238aca5208188ab1d
>>> Making HTTP GET request to http://codereview-linux.jsitelecom.com/api/review-requests/
>>> Making HTTP POST request to http://codereview-linux.jsitelecom.com/api/review-requests/
>>> Making HTTP GET request to http://codereview-linux.jsitelecom.com/api/review-requests/191/diffs/
>>> Making HTTP POST request to http://codereview-linux.jsitelecom.com/api/review-requests/191/diffs/
>>> Got API Error 105 (HTTP code 400): One or more fields had errors
>>> Error data: {u'fields': {u'path': [u'fatal: git cat-file e09f4f5128478bc6cc1d8b7d2c3779cc1b5994a2: bad file\n']}, u'stat': u'fail', u'err': {u'msg': u'One or more fields had errors', u'code': 105}}
Traceback (most recent call last):
File "c:\Python27\Scripts\rbt-script.py", line 9, in <module>
load_entry_point('RBTools==0.6.2', 'console_scripts', 'rbt')()
File "C:\csvn\Python25\lib\site-packages\rbtools-0.6.2-py2.7.egg\rbtools\commands\main.py", line 134, in main
command.run_from_argv([RB_MAIN, command_name] + args)
File "C:\csvn\Python25\lib\site-packages\rbtools-0.6.2-py2.7.egg\rbtools\commands\__init__.py", line 416, in run_from_argv
exit_code = self.main(*args) or 0
File "C:\csvn\Python25\lib\site-packages\rbtools-0.6.2-py2.7.egg\rbtools\commands\post.py", line 784, in main
submit_as=self.options.submit_as)
File "C:\csvn\Python25\lib\site-packages\rbtools-0.6.2-py2.7.egg\rbtools\commands\post.py", line 551, in post_request
raise CommandError(u'\n'.join(error_msg))
rbtools.commands.CommandError: Error uploading diff
One or more fields had errors (HTTP 400, API Error 105)
path: fatal: git cat-file e09f4f5128478bc6cc1d8b7d2c3779cc1b5994a2: bad file
Your review request still exists, but the diff is not attached.
http://codereview-linux.jsitelecom.com/r/191/
What is the expected output? What do you see instead?
What operating system are you using? What browser?
Windows 7 64bit OS, Chrome Version 36.0.1985.125 m
Please provide any additional information below.
We upgraded from version 2 beta to 2.0.5