From 735175206642ed1b74cb49d4c021a4a75f45de1b Mon Sep 17 00:00:00 2001 From: Ronny Esterluss Date: Thu, 31 Jul 2014 21:56:35 +0200 Subject: [PATCH] fixed string comparison --- src/lib/Hydra/Plugin/GitInput.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Plugin/GitInput.pm b/src/lib/Hydra/Plugin/GitInput.pm index b551db9b..275a6f8f 100644 --- a/src/lib/Hydra/Plugin/GitInput.pm +++ b/src/lib/Hydra/Plugin/GitInput.pm @@ -42,7 +42,7 @@ sub _cloneRepo { # Is the target branch a topgit branch? $res = run(cmd => ["git", "ls-tree", "-r", "$branch", ".topgit"], dir => $clonePath); - if ($res->{stdout} != "") { + if ($res->{stdout} ne "") { # Checkout the branch to look at its content. $res = run(cmd => ["git", "checkout", "--force", "$branch"], dir => $clonePath); die "error checking out Git branch '$branch' at `$uri':\n$res->{stderr}" if $res->{status};