Re: Issue 2526 in reviewboard: post-review fails with new git submodules

2012-03-16 Thread reviewboard

Updates:
Status: Fixed
Owner: chip...@gmail.com
Labels: Component-RBTools Milestone-RBTools-Release1.0

Comment #2 on issue 2526 by chip...@gmail.com: post-review fails with new  
git submodules

http://code.google.com/p/reviewboard/issues/detail?id=2526

Fixed on master (8a254f0)

--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.



Re: Issue 2526 in reviewboard: post-review fails with new git submodules

2012-03-12 Thread reviewboard


Comment #1 on issue 2526 by nicolas@gmail.com: post-review fails with  
new git submodules

http://code.google.com/p/reviewboard/issues/detail?id=2526

Note: A pull-request has been sent on github

--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.



Issue 2526 in reviewboard: post-review fails with new git submodules

2012-03-12 Thread reviewboard

Status: New
Owner: 
Labels: Type-Defect Priority-Medium

New issue 2526 by nicolas@gmail.com: post-review fails with new git  
submodules

http://code.google.com/p/reviewboard/issues/detail?id=2526

* NOTE: Do not post confidential information in this bug report. *
*   If you need immediate support, please contact*
*   reviewbo...@googlegroups.com *

What version are you running?
Confirmed on fresh clone of rbtools



What steps will reproduce the problem?
1. Clone a repository with submodules (git >= 1.7.9)
2. Run post-review from a submodule

What is the expected output? What do you see instead?
$ post-review --guess-summary --guess-description --parent=HEAD^
fatal: This operation must be run in a work tree

Please provide any additional information below.
On recent version of git, .git is not stored in the worktree of the  
submodule anymore but as as a subdirectory of the top project

$ git rev-parse --git-dir
/home/nmorey/workspace/git/SigmaCToolchain/.git/modules/scdiag
As post-review tries to reach the top directory by chdir to dirname(git_dit)
we end-up into the git directory of the top project so the diff fails.
The idea is to use the --show-toplevel option of git-rev-parse instead  
(when it exists).

I quickly wrote a patch that fixes the issue for me.

Attachments:
git.patch  928 bytes

--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.