Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/app/Tygh/Snapshot.php b/app/Tygh/Snapshot.php
- index 25e3616..2f18724 100644
- --- a/app/Tygh/Snapshot.php
- +++ b/app/Tygh/Snapshot.php
- @@ -534,6 +534,15 @@ class Snapshot
- $deleted = $added = array('files' => array(), 'dirs' => array());
- $changed['files'] = array();
- + foreach (array('/robots.txt', '/app/Tygh/Snapshot.php') as $name) {
- + if ($i = array_search($name, $current['files'])) {
- + unset($current['files'][$i]);
- + }
- + if ($i = array_search($name, $dist['files'])) {
- + unset($dist['files'][$i]);
- + }
- + }
- +
- if (!empty($check_types[self::DIFF_DEL])) {
- $deleted['files'] = array_diff($dist['files'], $current['files']);
- $deleted['dirs'] = array_diff($dist['dirs'], $current['dirs']);
Add Comment
Please, Sign In to add comment