Added check for None missed in recent commit.

Reported by fta At sofaraway.org

BUG=None
TEST=None
TBR=evan@chromium.org

Review URL: http://codereview.chromium.org/6610013

git-svn-id: http://src.chromium.org/svn/trunk/src/build@76733 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
dilmah@chromium.org 2011-03-03 11:47:05 +00:00
Родитель 6b153f0964
Коммит 4876111583
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -115,7 +115,9 @@ def IsGitSVN(directory):
# svn-related configuration. This command exits with an error code
# if there aren't any matches, so ignore its output.
proc = RunGitCommand(directory, ['config', '--get-regexp', '^svn'])
return (proc.wait() == 0)
if proc:
return (proc.wait() == 0)
return false
def FetchGitSVNURL(directory):