1461: Can't user remote repository in Git.

junam******@gmai***** (Google Code) (Is this you? Claim this profile.)
Jan. 28, 2010
What version are you running?

1.1 alpha 2

What's the URL of the page containing the problem?

/r/new/

What steps will reproduce the problem?
1. At /admin/db/scmtools/repository/,
set path setting like this 'user@xxxx.xxx.com:/hoge/fuga/.git'

2. At /r/new/, I can't upload diff file.


What is the expected output? What do you see instead?
I got errors.
One or more fields had errors
fatal: Not a git repository: 'None

What operating system are you using? What browser?
linux

Please provide any additional information below.
when I used post-review, I got error messages.

v>>> git rev-parse --git-dir
>>> git svn info
>>> git svn --version
>>> git config --get svn-remote.svn.url
>>> git remote show origin
>>> repository info: Path: user@xxxx.xxx.com:/hoge/fuga/.git, Base path: ,
Supports changesets: False
>>> git config --get reviewboard.url
>>> git diff --no-color --full-index master
>>> Looking for 'xxx.xxx.com' cookie in ~/.post-review-cookies.txt
>>> Loaded valid cookie -- no login required
>>> Attempting to create review request for None
>>> HTTP POSTing to http://xxxx.xxx.com/api/json/reviewrequests/new/:
{'repository_path': 'user@xxxx.xxx.com:/hoge/fuga/.git'}
>>> Review request created
>>> Uploading diff, size: 419
>>> HTTP POSTing to
http://xxxx.xxx.com/api/json/reviewrequests/23/diff/new/: {}
Error uploading diff: One or more fields had errors (105)
>>> {'fields': {'path': ["fatal: Not a git repository: 'None'\n"]}, 'stat':
'fail', 'err': {'msg': 'One or more fields had errors', 'code': 105}}
Your review request still exists, but the diff is not attached.
chipx86
#1 chipx86
There's no way to do remote repositories in Git. A local checkout would be needed.

In the 1.1 (soon to be 1.5) nightlies or the alpha release, you can declare a special
"raw checkout" URL that will allow Review Board to grab the file based on a filename
and revision. This is the only way today to access individual files from a remote Git
repository without having a full local always up-to-date checkout of the repository.
You will need something like cgit, gitweb, or GitHub for this.
  • +NotABug