Skip to content

Commit ff6fa23

Browse files
author
Jens Jahnke
committed
Added the new upload directories and ignore the cache directory completely.
With SugarCRM 6.4 the `cache/upload` directory moved to `upload` and `upload_backup`. These directories can safely be ignored. Additionally the `cache` directory is now ignored completely because it leads to the behaviour to use the git repository as a kind of backup tool if several parts of it are included. Furthermore the directory structure beneath `cache` is victim of enduring changes by the developers. I did also some code cleanup regarding the path names e.g. adding a `/` before most file and directory names.
1 parent 727777a commit ff6fa23

1 file changed

Lines changed: 11 additions & 23 deletions

File tree

SugarCRM.gitignore

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,21 @@
11
## SugarCRM
22
# Ignore custom .htaccess stuff.
33
/.htaccess
4-
# Ignore large parts of the annoying cache directory without breaking things.
5-
cache/csv/*
6-
cache/dashlets/*
7-
cache/diagnostic/*
8-
cache/dynamic_fields/*
9-
cache/feeds/*
10-
cache/import/*
11-
cache/include/*
12-
cache/jsLanguage/*
13-
cache/modules/*
14-
!cache/modules/emails
15-
!cache/modules/Emails
16-
cache/pdf/*
17-
cache/smarty/cache/*
18-
cache/smarty/templates_c/*
19-
cache/themes/*
20-
cache/xml/*
4+
# Ignore the cache directory completely. ATTENTION! This will break things!
5+
/cache/*
216
# Ignore some files and directories from the custom directory.
22-
custom/history/*
23-
custom/modulebuilder/*
24-
custom/working/*
25-
custom/modules/*/Ext/
26-
custom/application/Ext/*
7+
/custom/history/*
8+
/custom/modulebuilder/*
9+
/custom/working/*
10+
/custom/modules/*/Ext/
11+
/custom/application/Ext/*
2712
# Custom configuration should also be ignored.
2813
/config.php
2914
/config_override.php
3015
# The silent upgrade scripts aren't needed.
31-
silentUpgrade*.php
16+
/silentUpgrade*.php
3217
# Logs files can safely be ignored.
3318
*.log
19+
# Ignore the new upload directories.
20+
/upload/*
21+
/upload_backup/*

0 commit comments

Comments
 (0)