Results 1 to 10 of 10
  1. #1
    Join Date
    Jun 2008
    Posts
    5
    Plugin Contributions
    0

    Default Source Code public repository?

    Is there a publicly accessible repository for the ZenCart source? Just looking for read-only access. Svn or git.

    Thanks!

  2. #2
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Source Code public repository?

    Quote Originally Posted by edthered View Post
    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...

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,901
    Plugin Contributions
    96

    Default Re: Source Code public repository?

    The github repository is here: https://github.com/zencart/zencart

  4. #4
    Join Date
    Jun 2008
    Posts
    5
    Plugin Contributions
    0

    Default Re: Source Code public repository?

    What is the need for this?
    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.

    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.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Source Code public repository?

    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.

  6. #6
    Join Date
    Jun 2008
    Posts
    5
    Plugin Contributions
    0

    Default Re: Source Code public repository?

    Quote Originally Posted by DrByte View Post
    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.
    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.

  7. #7
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Source Code public repository?

    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.

  8. #8
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Source Code public repository?

    By the way, Welcome to the Zen Cart community!


    Quote Originally Posted by DrByte View Post
    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. ...
    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

  9. #9
    Join Date
    Jun 2008
    Posts
    5
    Plugin Contributions
    0

    Default Re: Source Code public repository?

    Quote Originally Posted by DrByte View Post
    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 ;)
    git is fine. and i've already cloned the zencart repo so i can keep up to date. memory though... that's a fleeting thing these days. ;)

    thanks for you efforts and taking the time to answer these questions.

  10. #10
    Join Date
    Jun 2008
    Posts
    5
    Plugin Contributions
    0

    Default Re: Source Code public repository?

    Quote Originally Posted by lhungil View Post
    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.
    It's been years since I set up the repo so there may be some new flags, or things I didn't set in the first place. I just know that if I check something out it's taken care of for me. Who knows, maybe I have a script in there doing that.

 

 

Similar Threads

  1. Source code didn't change the page source
    By wilson_li in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 9 Sep 2011, 02:33 PM
  2. source code
    By aras in forum General Questions
    Replies: 2
    Last Post: 16 Nov 2010, 07:49 PM
  3. Where is my source code?
    By Ambitions in forum General Questions
    Replies: 1
    Last Post: 12 Jun 2010, 02:51 PM
  4. Code Source Index!!!
    By Xylene2301 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 6 Feb 2007, 01:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg