gerrit/gerrit-sshd
David Pursehouse 6a4b4d27e3 Fix parameter checking on ls-projects command
The command `ls-projects -t` always fails with the error:

  Fatal: --tree and --show-branch options are not compatible.

This is because when there are no --show-branch options passed, the
call to `getShowBranch` still returns an empty list, which causes
`getShowBranch() != null` to be true, and results in the error condition.

Update the condition to first check if the list is null, and then if
it's empty.

The error only needs to be emitted if the list is not null and not
empty.

Change-Id: Ia4db17adaa814328da6eb88874088bbe3b6acbe6
2013-04-16 09:54:38 +09:00
..
.settings Suppress Eclipse warning "annotation should not be used as a superinterface" 2012-12-02 21:01:28 +09:00
src/main/java/com/google/gerrit/sshd Fix parameter checking on ls-projects command 2013-04-16 09:54:38 +09:00
.gitignore Add Intellij IDEA files to ignore list 2012-05-03 13:17:43 -07:00
pom.xml Merge branch 'stable-2.5' 2012-10-25 13:29:29 -07:00