dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e33b8c4
)
Bug 35583 - GitInfo::isSHA1 returns true for non-sha1 values
author
Reedy
<reedy@wikimedia.org>
Thu, 29 Mar 2012 14:38:36 +0000
(15:38 +0100)
committer
Reedy
<reedy@wikimedia.org>
Thu, 29 Mar 2012 14:38:36 +0000
(15:38 +0100)
Patch by Alexis
Change-Id: I6c69d017d2d6ad1237b0c34ffa8a7ae5fb518178
includes/GitInfo.php
patch
|
blob
|
history
diff --git
a/includes/GitInfo.php
b/includes/GitInfo.php
index
bc3f35e
..
618ae94
100644
(file)
--- a/
includes/GitInfo.php
+++ b/
includes/GitInfo.php
@@
-46,7
+46,7
@@
class GitInfo {
* @return bool Whether or not the string looks like a SHA1
*/
public static function isSHA1( $str ) {
- return !!preg_match( '/^[0-9A-
Z
]{40}$/i', $str );
+ return !!preg_match( '/^[0-9A-
F
]{40}$/i', $str );
}
/**
@@
-119,4
+119,4
@@
class GitInfo {
return self::repo()->getCurrentBranch();
}
-}
\ No newline at end of file
+}