Commit bbf925aa authored by Russ Cox's avatar Russ Cox

codereview: avoid crash if no config

Fixes #959.

R=r
CC=golang-dev
https://golang.org/cl/1876045
parent b49561d8
......@@ -1632,7 +1632,11 @@ def RietveldSetup(ui, repo):
if line.startswith('defaultcc: '):
defaultcc = SplitCommaSpace(line[10:])
except:
pass
# If there are no options, chances are good this is not
# a code review repository; stop now before we foul
# things up even worse. Might also be that repo doesn't
# even have a root. See issue 959.
return
try:
f = open(repo.root + '/CONTRIBUTORS', 'r')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment