Delta Upgrade: Difference between revisions

From Dolibarr ERP CRM Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 20: Line 20:


A new directory named <code>dolibarr</code> containing the Dolibarr source code from all branches will be located on your current path.
A new directory named <code>dolibarr</code> containing the Dolibarr source code from all branches will be located on your current path.
<br />


*Switch to the cloned repository
*Switch to the cloned repository
Line 26: Line 28:
cd dolibarr
cd dolibarr
</syntaxhighlight>
</syntaxhighlight>
<br />


*Create a local branch with the code from the latest released tag
*Create a local branch with the code from the latest released tag
Line 32: Line 36:
git checkout tags/11.0.2 -b 11.0.2
git checkout tags/11.0.2 -b 11.0.2
</syntaxhighlight>
</syntaxhighlight>
<br />


*Create an archive of the changed files between 11.0.1 and 11.0.2
*Create an archive of the changed files between 11.0.1 and 11.0.2

Latest revision as of 15:01, 5 March 2020

The following page describe how to retreive an archive containing only changed files between two Dolibarr versions using the Git repository.

For the example, we take an upgrade from 11.0.1 to 11.0.2 but you can change the versions to suit your needs.


  • First, start by cloning the Dolibarr repository locally on your machine
git clone https://github.com/Dolibarr/dolibarr.git

A new directory named dolibarr containing the Dolibarr source code from all branches will be located on your current path.


  • Switch to the cloned repository
cd dolibarr


  • Create a local branch with the code from the latest released tag
git checkout tags/11.0.2 -b 11.0.2


  • Create an archive of the changed files between 11.0.1 and 11.0.2
git archive --output=dolibarr-delta-11.0.2.zip HEAD $(git diff --name-only tags/11.0.1 tags/11.0.2 --diff-filter=ACMRTUXB)

Your archive will be created inside the current dolibarr directory with the name dolibarr-delta-11.0.2.zip.