Make tree view blob sizes fallback gracefully on older versions
author Chris Han
()
committer Chris Han
()
commit 67bab1ea9a97a8520d341bb435c150f121e1a124
tree e74096f9df636421ed3c121a747b2d144c392dbf
parent d078db434fe6fbd1bab660e67108c3e76f5d6b88
Make tree view blob sizes fallback gracefully on older versions

The tree view used -l indiscriminately to get blob sizes, without
taking into account that the -l option only appeared in git 1.5.3,
in which case the tree would fail to display anything (because the
command returned only the help message because of the invalid -l
parameter). Now it falls back properly depending on the version,
only displaying blob sizes if running on git 1.5.3 or greater.
include/git/GitExe.class.php
include/git/Tree.class.php
comments