Merge "Dan't accessing attr of None (manifest subcmd)"

This commit is contained in:
Conley Owens 2013-10-16 21:41:33 +00:00 committed by Gerrit Code Review
commit 12fd10c201

View File

@ -233,7 +233,9 @@ class XmlManifest(object):
e.setAttribute('name', name)
if relpath != name:
e.setAttribute('path', relpath)
remoteName = d.remote.remoteAlias or d.remote.name
remoteName = None
if d.remote:
remoteName = d.remote.remoteAlias or d.remote.name
if not d.remote or p.remote.name != remoteName:
e.setAttribute('remote', p.remote.name)
if peg_rev: