Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-11144

Make Git fetches faster for plugin, platforms, and templates by using --depth 1

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-fetch
    • Labels:

      Description

      Some users are complaining that some plugin git repos are too big, and the plugin is not available thru npm

      So people installing the plugin it can take up to 20 minutes to install a plugin because Cordova CLI it's doing a full git clone of the repo.

      I was wondering if the flag --depth 1 would make it faster by fetching just the last copy of the repo on the specified git hash, hash can be branch, or tag, or commit hash

      Going to ask to the mailing list to see of using --depth 1 is a good and safe change?

        Attachments

          Activity

            People

            • Assignee:
              csantana Carlos Santana
              Reporter:
              csantana Carlos Santana
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: