Giter Club home page Giter Club logo

Comments (6)

nathanchance avatar nathanchance commented on July 26, 2024 1

Yes, we run git fetch origin which will fetch both new tags and branches. It looks like your example properly checked out. llvmorg-9.0.0-rc1?

from tc-build.

nathanchance avatar nathanchance commented on July 26, 2024

Does not work how? What do you expect it to do?

from tc-build.

dileks avatar dileks commented on July 26, 2024

I checkout release/9.x Git branch and then tried a week later to checkout llvmorg-9.0.0-rc1 Git tag by doing an incremental pull-ing.
Unsure if this is smart/allowed/foreseen-in-the-design.

Are remote Git tags fetched when using -B/--branch option?

from tc-build.

dileks avatar dileks commented on July 26, 2024

The Git tag was indeed recognized/fetched.

$ git branch
* (HEAD detached at llvmorg-9.0.0-rc1)
  release/9.x

Manually I did:

$ cd tc-build/llvm-project

$ git ls-remote --tags origin | grep '9.0.0-rc1'
f85f31d608a7248e2fd419dee11371dcb9bd1efd        refs/tags/llvmorg-9.0.0-rc1
6aa75a25bdeea9cdc4b04cdd91e82e680444bf4b        refs/tags/llvmorg-9.0.0-rc1^{}

$ git checkout -b llvmorg-9.0.0-rc1 tags/llvmorg-9.0.0-rc1

In terms of a Git branch I expected to have exactly what the last line does: a local branch called llvmorg-9.0.0-rc1 not (HEAD detached at llvmorg-9.0.0-rc1).
Maybe this is just a cosmetical thing.

BTW, above I see two Git tags.
The commit-id 6aa75a25bdeea9cdc4b04cdd91e82e680444bf4b is the commit-id of the llvmorg-9.0.0-rc1 Git tag. What is the difference?

from tc-build.

nathanchance avatar nathanchance commented on July 26, 2024

In terms of a Git branch I expected to have exactly what the last line does: a local branch called llvmorg-9.0.0-rc1 not (HEAD detached at llvmorg-9.0.0-rc1).
Maybe this is just a cosmetical thing.

The script runs git checkout, rather than git checkout -b. So by specifying llvmorg-9.0.0-rc1 as the "branch", git checkout will put you into a detached HEAD state. If you want a branch instead, you should just manage the repository yourself and pass in --no-update to the script.

BTW, above I see two Git tags.
The commit-id 6aa75a25bdeea9cdc4b04cdd91e82e680444bf4b is the commit-id of the llvmorg-9.0.0-rc1 Git tag. What is the difference?

f85f31d608a7248e2fd419dee11371dcb9bd1efd is the tag object, 6aa75a25bdeea9cdc4b04cdd91e82e680444bf4b is the commit that the tag points to.

from tc-build.

nathanchance avatar nathanchance commented on July 26, 2024

Re-reading this, I think there is some confusion over the meaning of --incremental. --incremental deals with not removing the build artifacts from a previous compile, not incrementally updating the repo. There is no bug here.

from tc-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.