GithubHelp home page GithubHelp logo

Comments (7)

 avatar commented on May 27, 2024

The problem with this is that with --depth=1 the tags (apparently) do not match up anymore, so I'm not sure if this could work with the current scripts. If someone could verify whether this happens and/or has a workaround, that would be welcome.

from mpv-build.

 avatar commented on May 27, 2024

Or maybe the problem is that it doesn't fetch all refs (so we can't list them locally). Do you have any interest in getting this to work?

from mpv-build.

kevmitch avatar kevmitch commented on May 27, 2024

For me,

git clone --depth 1 https://github.com/FFmpeg/FFmpeg.git
cd FFmpeg && git tag

returns nothing at all.

It seems that the fundamental problem is that git has no way of of cloning only metadata. For example

git log remotes/origin/master

will not do what you might expect/want in a shallow clone. There is a relevant stackoverflow question essentially confirming this.

from mpv-build.

postmodern avatar postmodern commented on May 27, 2024

I guess you'd want to git clone/pull the entire repo if you want to use a specific release. If you just want to use HEAD, git clone --depth 1 should work.

from mpv-build.

kevmitch avatar kevmitch commented on May 27, 2024

this creates all kinds of problems when switching from one to the other

from mpv-build.

postmodern avatar postmodern commented on May 27, 2024

Could run git pull --tags if switching to to a specific release?

from mpv-build.

postmodern avatar postmodern commented on May 27, 2024

Actually, if you are building from a release, the script should download the *.tar.gz and extract them. If building from master, git clone.

from mpv-build.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.