projects
/
phpgitweb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reactivated project (dev: http://git-dev.pk910.de)
[phpgitweb.git]
/
htdocs
/
lib
/
GitCommand.class.php
diff --git
a/htdocs/lib/GitCommand.class.php
b/htdocs/lib/GitCommand.class.php
index 86174b5e6e29551eba91a7757378208d913fe9eb..198cc61f6ce166f5e7fcbe78d2dd7be7ee0fb13e 100644
(file)
--- a/
htdocs/lib/GitCommand.class.php
+++ b/
htdocs/lib/GitCommand.class.php
@@
-68,8
+68,10
@@
class GitCommand {
if($ref)
$args[] = $ref;
$age = self::git_execute($args, $git_path);
if($ref)
$args[] = $ref;
$age = self::git_execute($args, $git_path);
- preg_match("/[0-9]{9,}/i", $age, $result);
- return $result[0];
+ if(preg_match("/[0-9]{9,}/i", $age, $result))
+ return $result[0];
+ else
+ return -1;
}
private static function parse_commit($commit_data) {
}
private static function parse_commit($commit_data) {