Permalink
Browse files

Remove use of git status --porcelain to support older Git versions

  • Loading branch information...
1 parent 28eb358 commit 08bd04c593bff895ef2959d0f1cf08546510e3a9 @j4mie committed Oct 4, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 gitstat.php
View
@@ -22,7 +22,7 @@ public function __construct($repo_dir) {
* Is the working tree for this repository dirty?
*/
public function is_dirty() {
- $command = "{$this->_git_command} {$this->_flags} status --porcelain";
+ $command = "{$this->_git_command} {$this->_flags} ls-files -m -o -d --exclude-standard";
$output = trim(shell_exec($command));
return $output !== '';
}

0 comments on commit 08bd04c

Please sign in to comment.