X-Git-Url: http://git.pk910.de/?p=phpgitweb.git;a=blobdiff_plain;f=htdocs%2Flib%2FGitCommand.class.php;fp=htdocs%2Flib%2FGitCommand.class.php;h=cb63050a46612cd0f1569ffd885d9fb8b2b6efdc;hp=609d0ad7d0575f06a1125b631cf1ce81889580ba;hb=27626297549b51277777302328ce6e793b6e5e17;hpb=394a07ff3e283f94c7ead44e8bd02d44c223314b diff --git a/htdocs/lib/GitCommand.class.php b/htdocs/lib/GitCommand.class.php index 609d0ad..cb63050 100644 --- a/htdocs/lib/GitCommand.class.php +++ b/htdocs/lib/GitCommand.class.php @@ -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; }