Guest User

Untitled

a guest
Nov 22nd, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. diff --git a/app/Tygh/Snapshot.php b/app/Tygh/Snapshot.php
  2. index 25e3616..2f18724 100644
  3. --- a/app/Tygh/Snapshot.php
  4. +++ b/app/Tygh/Snapshot.php
  5. @@ -534,6 +534,15 @@ class Snapshot
  6. $deleted = $added = array('files' => array(), 'dirs' => array());
  7. $changed['files'] = array();
  8.  
  9. + foreach (array('/robots.txt', '/app/Tygh/Snapshot.php') as $name) {
  10. + if ($i = array_search($name, $current['files'])) {
  11. + unset($current['files'][$i]);
  12. + }
  13. + if ($i = array_search($name, $dist['files'])) {
  14. + unset($dist['files'][$i]);
  15. + }
  16. + }
  17. +
  18. if (!empty($check_types[self::DIFF_DEL])) {
  19. $deleted['files'] = array_diff($dist['files'], $current['files']);
  20. $deleted['dirs'] = array_diff($dist['dirs'], $current['dirs']);
Add Comment
Please, Sign In to add comment