Skip to content
Snippets Groups Projects
Commit ae41559b authored by Andreas Gohr's avatar Andreas Gohr
Browse files

fixed darcs patchset guessing in version check

darcs-hash:20051027183521-7ad00-08b33c7960975925fdb001476bd14124e9ff3f51.gz
parent f42d1c75
No related branches found
No related tags found
No related merge requests found
......@@ -1047,7 +1047,7 @@ function getVersion(){
}elseif(is_dir('_darcs')){
//darcs checkout
$inv = file('_darcs/inventory');
$inv = preg_grep('#andi@splitbrain\.org\*\*\d{14}#',$inv);
$inv = preg_grep('#\*\*\d{14}[\]$]#',$inv);
$cur = array_pop($inv);
preg_match('#\*\*(\d{4})(\d{2})(\d{2})#',$cur,$matches);
return 'Darcs '.$matches[1].'-'.$matches[2].'-'.$matches[3];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment