mirror of
https://gerrit.googlesource.com/git-repo
synced 2025-01-02 16:14:25 +00:00
Dan't accessing attr of None (manifest
subcmd)
If d.remote is None, this code failed for obvious reasons. This is a simple fix. Change-Id: I413756121e444111f1e3c7dc8bc8032467946c13
This commit is contained in:
parent
37128b6f70
commit
a17d7af4d9
@ -233,7 +233,9 @@ class XmlManifest(object):
|
|||||||
e.setAttribute('name', name)
|
e.setAttribute('name', name)
|
||||||
if relpath != name:
|
if relpath != name:
|
||||||
e.setAttribute('path', relpath)
|
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:
|
if not d.remote or p.remote.name != remoteName:
|
||||||
e.setAttribute('remote', p.remote.name)
|
e.setAttribute('remote', p.remote.name)
|
||||||
if peg_rev:
|
if peg_rev:
|
||||||
|
Loading…
Reference in New Issue
Block a user