So I ran into the same exact issue, except in OS X. The error was exactly the same, I couldn't figure it out. Ran rbt post -d on one of my Linux boxes, worked the first time. I have no idea why it didn't work in OS X, but that's just my two cents.
On Thursday, 13 March 2014 07:53:18 UTC-6, Steve Steele wrote: > > I'm having trouble getting my diffs to be uploaded to ReviewBoard: > > $ rbt post -d > DEBUG:root:Checking for a Subversion repository... > DEBUG:root:Running: svn info --non-interactive > DEBUG:root:Command exited with rc 1: ['svn', 'info', '--non-interactive'] > svn: '.' is not a working copy > --- > DEBUG:root:Checking for a Git repository... > DEBUG:root:Running: git rev-parse --git-dir > DEBUG:root:Running: git config core.bare > DEBUG:root:Running: git rev-parse --show-toplevel > DEBUG:root:Running: git symbolic-ref -q HEAD > DEBUG:root:Running: git config --get git-p4.port > DEBUG:root:Command exited with rc 1: ['git', 'config', '--get', > 'git-p4.port'] > --- > DEBUG:root:Running: git config --get branch.TTBLAH.merge > DEBUG:root:Command exited with rc 1: ['git', 'config', '--get', > 'branch.TTBLAH.merge'] > --- > DEBUG:root:Running: git config --get branch.TTBLAH.remote > DEBUG:root:Command exited with rc 1: ['git', 'config', '--get', > 'branch.TTBLAH.remote'] > --- > DEBUG:root:Running: git config --get remote.origin.url > DEBUG:root:repository info: Path: providerpoint, Base path: , Supports > changesets: False > DEBUG:root:Making HTTP GET request to http://blade-66/reviewboard/api/ > DEBUG:root:Making HTTP GET request to > http://blade-66/reviewboard/api/info/ > DEBUG:root:Running: git rev-parse refs/heads/TTBLAH > DEBUG:root:Running: git merge-base > 4810fb1f51e15e912eade66829558e0d00d40cfb origin/release-6.0 > DEBUG:root:Running: git rev-parse 5402e6a5d333d8012b0278d5b158f95df45269c1 > DEBUG:root:Running: git rev-parse release-6.0 > DEBUG:root:Running: git status --porcelain --untracked-files=no > WARNING:root:Your working directory is not clean. Any changes which have > not been committed to a branch will not be included in your review request. > DEBUG:root:Running: git diff --no-color --full-index --no-ext-diff > --ignore-submodules --no-renames > 5402e6a5d333d8012b0278d5b158f95df45269c1..4810fb1f51e15e912eade66829558e0d00d40cfb > > -M > DEBUG:root:Running: git diff --no-color --full-index --no-ext-diff > --ignore-submodules --no-renames > 5402e6a5d333d8012b0278d5b158f95df45269c1..5402e6a5d333d8012b0278d5b158f95df45269c1 > > -M > DEBUG:root:Making HTTP GET request to > http://blade-66/reviewboard/api/review-requests/ > DEBUG:root:Making HTTP POST request to > http://blade-66/reviewboard/api/review-requests/ > DEBUG:root:Making HTTP GET request to > http://blade-66/reviewboard/api/review-requests/34/diffs/ > DEBUG:root:Making HTTP POST request to > http://blade-66/reviewboard/api/review-requests/34/diffs/ > DEBUG:root:Got API Error 105 (HTTP code 400): One or more fields had errors > DEBUG:root:Error data: {u'fields': {u'path': [u'error: unable to find > 955231e6e237f85a89db874fbc0fecb90fb9fa35\nfatal: git cat-file > 955231e6e237f85a89db874fbc0fecb90fb9fa35: 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 "/usr/bin/rbt", line 9, in <module> > load_entry_point('RBTools==0.5.7', 'console_scripts', 'rbt')() > File "/usr/local/lib/python2.6/site-packages/rbtools/commands/main.py", > line 127, in main > command.run_from_argv([RB_MAIN] + args) > File > "/usr/local/lib/python2.6/site-packages/rbtools/commands/__init__.py", line > 158, in run_from_argv > exit_code = self.main(*args) or 0 > File "/usr/local/lib/python2.6/site-packages/rbtools/commands/post.py", > line 659, in main > submit_as=self.options.submit_as) > File "/usr/local/lib/python2.6/site-packages/rbtools/commands/post.py", > line 534, in post_request > raise CommandError('\n'.join(error_msg)) > rbtools.commands.CommandError: Error uploading diff > > > One or more fields had errors (HTTP 400, API Error 105) > > path: error: unable to find 955231e6e237f85a89db874fbc0fecb90fb9fa35 > fatal: git cat-file 955231e6e237f85a89db874fbc0fecb90fb9fa35: bad file > > > Your review request still exists, but the diff is not attached. > > I have gone to the local repository that ReviewBoard uses and am able to > do: > git cat-file -t 955231e6e237f85a89db874fbc0fecb90fb9fa35 > blob > > I notice that the error message doesn't use any options, but if I don't > specify an option, I get an error: > $ git cat-file 955231e6e237f85a89db874fbc0fecb90fb9fa35 > usage: git cat-file (-t|-s|-e|-p|<type>) <object> > or: git cat-file (--batch|--batch-check) < <list_of_objects> > > <type> can be one of: blob, tree, commit, tag > -t show object type > -s show object size > -e exit with zero when there's no error > -p pretty-print object's content > --batch show info and content of objects fed from the > standard input > --batch-check show info about objects fed from the standard > input > > I'm not sure if that's an issue or not. Any ideas? > > Thanks! > -- Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/ Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/ Happy user? Let us know! https://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.