Perform a deep copy of version objects
This commit is contained in:
parent
e8ea9a2932
commit
b6c8034e22
1 changed files with 2 additions and 2 deletions
|
|
@ -161,8 +161,8 @@ String generate(meta, String sourcerevision, String sourcepath, String basebuild
|
|||
|
||||
String copyfrom(meta, othermeta) {
|
||||
// Deep copy
|
||||
def newgitinfo = othermeta.gitinfo.getClass().newInstance(othermeta.gitinfo)
|
||||
def newbuildstampinfo = othermeta.buildstampinfo.getClass().newInstance(othermeta.buildstampinfo)
|
||||
def newgitinfo = othermeta.gitinfo.getClass().newInstance([othermeta.gitinfo])
|
||||
def newbuildstampinfo = othermeta.buildstampinfo.getClass().newInstance([othermeta.buildstampinfo])
|
||||
|
||||
meta.gitinfo = newgitinfo
|
||||
meta.buildstampinfo = newbuildstampinfo
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue