small fixes
[phpgitweb.git] / htdocs / lib / GitCommand.class.php
index 609d0ad7d0575f06a1125b631cf1ce81889580ba..cb63050a46612cd0f1569ffd885d9fb8b2b6efdc 100644 (file)
@@ -133,7 +133,7 @@ class GitCommand {
        public static function get_hash($git_path, $ref) {
                $args = array("rev-parse", "--verify", "-q", $ref);
                $result = self::git_execute($args, $git_path);
-               if(prag_match("#([a-f0-9]{40})#i", $result, $match))
+               if(preg_match("#([a-f0-9]{40})#i", $result, $match))
                        return $match[1];
                return null;
        }