commit | eadec0d8936bed2f86fbfa06513c439611028056 | [log] [tgz] |
---|---|---|
author | Shawn Pearce <sop@google.com> | Mon Dec 09 17:12:47 2013 -0800 |
committer | David Pursehouse <david.pursehouse@sonymobile.com> | Tue Dec 10 01:47:27 2013 +0000 |
tree | 72238c3a031df0cb66de6f45e016f050ab870888 | |
parent | 3affee014113488bacce2801c1c75541ac63eed2 [diff] |
Fix ArrayIndexOutOfBoundsException on initial commits PatchSetInserter crashed if given a new patch set for an initial commit in a repository. The lack of parents caused getParent(0) to throw an exception. Instead require the two commits to have the same number of parents. If that number is 0, the commits are NO_CODE_CHANGE. If >0 then test only the first parent as before. Change-Id: I6cefd5f16bf866062b247143a64d3eac92710192