Branches don't matter in Git at this point. A branch is just a handy tag
that gives a human-readable name to a SHA1 and updates on each commit. From
the point of view of anything that needs to interact with files on Git, the
only information needed are a SHA1 and a filename. A branch will never come
into play here.
What it sounds like is that your remote repo isn't updated properly.
Perhaps you have changes in your master that aren't pushed, and the diff is
therefore based on a revision that is not available to Review Board by way
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com
On Sat, Jun 2, 2012 at 2:21 AM, Ryan Raasch <ryan.raa...@gmail.com> wrote:
> On Friday, June 1, 2012 6:54:08 PM UTC+2, Christian Hammond wrote:
>> The branch doesn't come into play. All that's needed for checking out a
>> file is a filename and revision.
>> Something like cgit is actually required for remote Git repositories, as
>> Git has no ability to fetch individual blobs remotely.
>> Yea, that makes sense. But when I am using post-review to generate a diff
> on a local branch to a remote branch, the diff is correct. However, when
> the server tries to apply the patch, it fails. The server returns an error
> that one of the files is not found in the remote branch. After
> investigating this,
> it turns out that the master on remote repos does not have that file, and
> the remote branch does. So it seems that the patch was applied to the
> default branch, master on the server (which is what cgit delivers in the
> RAW URL without the branch specification).
> The diff generated by post-review is correct (diff is created from the
> correct remote branch to local branch), but the apply on the server side
> seems to not apply the diff on the correct branch. What I cannot understand
> is that once the diff is generated on the client side, the branch
> information is lost. How does the server know which branch to apply the
> received patch (through the cgit interface)? BTW, everything worked when I
> used a local clone residing on the server.
>> On Jun 1, 2012, at 2:33, Ryan Raasch <ryan.raa...@gmail.com> wrote:
>> I have now decided it easier to use the cgit interface for the backend.
>> However, the
>> raw url format does not include the parameter for the branch to be diffed
>> (in git)
>> I cannot find where the branch can be specified. Is this possible?
>> I guess also (now that i think about it), uploading a diff does not ask
>> which branch the
>> diff should be based upon...
>> BTW i am using v1.6.6
>> Want to help the Review Board project? Donate today at
>> http://www.reviewboard.org/**donate/ <http://www.reviewboard.org/donate/>
>> Happy user? Let us know at
>> To unsubscribe from this group, send email to reviewboard+unsubscribe@**
>> googlegroups.com <reviewboard+unsubscr...@googlegroups.com>
>> For more options, visit this group at http://groups.google.com/**
> Want to help the Review Board project? Donate today at
> Happy user? Let us know at http://www.reviewboard.org/users/
> To unsubscribe from this group, send email to
> For more options, visit this group at
Want to help the Review Board project? Donate today at
Happy user? Let us know at http://www.reviewboard.org/users/
To unsubscribe from this group, send email to
For more options, visit this group at