]> source.dussan.org Git - jgit.git/commit
Don't iterate over advertised refs when HEAD is null 81/4681/1
authorKevin Sawicki <kevin@github.com>
Sat, 26 Nov 2011 22:47:21 +0000 (14:47 -0800)
committerKevin Sawicki <kevin@github.com>
Sat, 26 Nov 2011 22:47:21 +0000 (14:47 -0800)
commit241e03be9de1251a9e2296c043b21d61bed0fd2e
tree322cae482fd961d06f2e57a28b6f4a36c4cb6c62
parentb4495d1005e6e03e921ed116614ec45499f1923d
Don't iterate over advertised refs when HEAD is null

Moves the check from inside the loop to outside the loop
and returns immediately if the HEAD advertisded ref is null

Change-Id: I539da6cafb4f73610b8e00259e32bd4d57f4f4cc
org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java