]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Fix lint warning
authorvrana <jakubv@fb.com>
Wed, 15 Aug 2012 21:27:01 +0000 (14:27 -0700)
committervrana <jakubv@fb.com>
Wed, 15 Aug 2012 21:27:04 +0000 (14:27 -0700)
src/repository/api/ArcanistMercurialAPI.php

index cd22344bd5536a6b1449d19b098da78a94502a2e..59915aec4ed81d4c17e7790001a6fc9c15352a59 100644 (file)
@@ -415,11 +415,11 @@ final class ArcanistMercurialAPI extends ArcanistRepositoryAPI {
   }
 
   public function supportsAmend() {
-    list ($err, $stdout) = $this->execManualLocal('help commit');
+    list($err, $stdout) = $this->execManualLocal('help commit');
     if ($err) {
       return false;
     } else {
-      return (strstr($stdout, "amend") !== false);
+      return (strpos($stdout, "amend") !== false);
     }
   }