MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    Purpose of Depth=1

    Development
    2
    2
    66
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ankonaskiff17
      ankonaskiff17 last edited by

      I’ve loaded a few 3rd party modules and was just curious as to why one of them has --Depth=1 git the initial git clone line. I’ve done plenty of that process with sensors for Pi computers outside of the MM arena and have never seen that before. What is it doing and why is it used.

      mumblebaj 1 Reply Last reply Reply Quote 0
      • mumblebaj
        mumblebaj Project Sponsor @ankonaskiff17 last edited by

        @ankonaskiff17 The

        --depth=1
        

        means the following. Git shallow clone lets you pull down just the latest commits, not the entire repo history. So if your project has years of history, or history from thousands of commits, you can select a particular depth to pull.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Enjoying MagicMirror? Please consider a donation!
        MagicMirror created by Michael Teeuw.
        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy