Fix checking for file existence when the file is empty on Git.

Review Request #2788 — Created Jan. 10, 2012 and submitted — Latest diff uploaded

Information

Review Board
release-1.6.x

Reviewers

Fix checking for file existence when the file is empty on Git.

Git was using the file contents as an indicator as to whether a file
exists when using raw file URLs. However, this fails on empty files,
such as a standard __init__.py.

What we really care about is whether we can successfully fetch a file,
or whether we'll get an HTTP error. So, ignore the contents, and assume
the file exists if there's no error.
No testing, but it *looks* like it'll work!
    Loading...