Skip to content

Commit

Permalink
Fix build script on git 2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge committed Jul 31, 2016
1 parent 2a193a7 commit b5ca904
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion build/build.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,16 @@
continue;
}

// Handle renamed files since git 2.9.0
if (substr($file, 0, 1) == 'R')
{
// Get the file before and file after
$files = explode("\t", substr($file, 5));
$deletedFiles[] = $files[0];
$filesArray[$files[1]] = true;
}
// Don't add deleted files to the list
if (substr($file, 0, 1) != 'D')
else if (substr($file, 0, 1) != 'D')
{
$filesArray[$fileName] = true;
}
Expand Down

0 comments on commit b5ca904

Please sign in to comment.