Is there a publicly accessible repository for the ZenCart source? Just looking for read-only access. Svn or git.
Thanks!
Is there a publicly accessible repository for the ZenCart source? Just looking for read-only access. Svn or git.
Thanks!
ZC is available in github, but download of the software is publicly available where all of the code for that version of ZC is readable/modifiable. Almost all past versions of ZC are available from http://www.zen-cart/getit. (I say almost all as there are some very early versions that may not be available. But definitely 1.3.x on are avail.)
What is the need for this?
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
The github repository is here: https://github.com/zencart/zencart
I just upgraded a client site to 1.5.4 and when I added the new files to subversion I encountered a massive headache from inconsistent line endings from the official release. If I can check out the tags directly I can eliminate all that trouble.What is the need for this?
I'm sure by the next release I'll have forgotten that I need to run dos2unix on the release before merging the changes into my current project.
Thanks to all for the links.
You could also use a text-file-compare utility like WinMerge to do the comparison of files, and tell it to ignore line-endings.
Then, after you've identified the customizations you need to re-make in the new version, you can make those edits and upload the complete new fileset to the server.
And, since that's what the documented upgrade instructions advise anyway, that approach is in keeping with existing recommendations.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
This is not about what goes on the live server, that was fine, but what goes into the development subversion repository after I've upgraded. When I add the new files into the local set (svn add) subversion won't take them if the line endings are inconsistent, so I have to go through file by file as the adds fail and fix them. I'm just looking for an easy way to get around that for next time. If I have a local checkout then I'll grab the new through subversion and won't run into this again, hopefully.
I do have a script to run over the directory now, but I doubt I'll remember that come next upgrade.
It's been a long time since I used SVN, but I know git allows for setting some configuration parameters for handling line-endings.
Just mentioning in case that's worth exploring.
But, as you say, using the utility to manage files downloaded from your server may be the best solution ... just a matter of remembering ;)
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
By the way, Welcome to the Zen Cart community!
Ahh yes, the joys of Subversion.
Modern SVN does support configuration for handling OS specific line-endings (very similar to GIT), just this mode is not usually enabled out of box. Basically you set the svn:eol-style attribute native before checking in a TEXT file. This can be automated on the first commit by your SVN client (commandline, tortoise-svn, etc) by configuring auto-props.
Alternatively a SVN repository administrator can have a pre-commit script on the server (to basically do what auto-props does)... But usually it is easier to just configure the SVN client (unless you have lots of people regularly committing new files)...
While this ensures consistency in SVN (and GIT if configured the same), if other methods of transferring files between computers is used (such as SMB, EMAIL, IM, etc) they may not have consistent EOLs. To handle this case one will want to ensure the tool used to do comparisons does support an option to "ignore EOL differences".
NOTE: Using auto-props and svn:eol-style is discussed in the SVN manual and also on stackoverflow.
Last edited by lhungil; 14 Jan 2015 at 02:47 PM.
The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker