Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit bcaea85

Browse files
committed
Fix meta.git download/preview. Fix #1275
1 parent 5045410 commit bcaea85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/plugins/meta.git/src/GitManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public function applyActions(\Psr\Http\Message\ServerRequestInterface $requestIn
136136
$command = $git->getCommand("cat-file");
137137
$command->setOption("s", true);
138138
$command->addArgument($commitId.":".$file);
139-
$size = $command->execute();
139+
$size = floatval(trim($command->execute()));
140140

141141
$command = $git->getCommand("show");
142142
$command->addArgument($commitId.":".$file);

0 commit comments

Comments
 (0)