Post by arhatron » Sun Jul 23, 2017 9:46 pm

opencart 2.2.0.0 and 2.3.0.2 has .gitignore

Code: Select all

...
# Modification Files
/upload/system/storage/modification/*
!/upload/system/storage/modification/index.html
...  

I can understand many other rules.

Code: Select all

/upload/image/cache/*
/upload/system/storage/cache/*
cache can be regenerated automatically if it doesn't exist.

Code: Select all

/tests/phpunit/vendor/*
vendor can be downloaded by composer

But if we installed some extension, which is located inside /upload/system/storage/modification/
And we did not commit to git. Later, we have a project needs to use this version.
We clone the project, we fetch, pull, and find out that something we need are missing.
And it seems that we dont have other way to get the modification files.
How do we do?

Another question, opencart 3.0.2.0, doesn't have .gitignore. Why?

New member

Posts

Joined
Wed Sep 07, 2016 12:38 pm

Post by daveyoi » Mon Jul 24, 2017 5:27 am

Files in the modification directory are generated files. Every time you run modification refresh the files are deleted and regenerated.

They should not be in your code control. You should commit the module files to code control including the ocmod xml that then generates the modification files not the resulting modification files themselves.

Image
Tristar Web Solutions


New member

Posts

Joined
Sun Oct 05, 2014 2:38 am
Who is online

Users browsing this forum: No registered users and 190 guests