Allow shallow-clone to a specific branch or tag
See original GitHub issueI did a shallow-clone - but this clones Git master.
Switching to remote release/10.x
is not possible out of this Git (or I did not find an appropriate solution).
Instructions:
cd tc-build
TC_OPTS=" --build-type Release -p clang;lld -t X86 -b release/10.x --shallow-clone --no-update --check-targets clang lld --build-stage1-only -B /home/dileks/src/llvm-toolchain/build --install-stage1-only -I /home/dileks/src/llvm-toolchain/install"
./build-llvm.py ${TC_OPTS}
A manual shallow-clone to a specific branch was succesful here (see [1], sorry partly German):
$ git clone --branch release/10.x --depth 1 git://github.com/llvm/llvm-project
Klone nach 'llvm-project' ...
remote: Enumerating objects: 94802, done.
remote: Counting objects: 100% (94802/94802), done.
remote: Compressing objects: 100% (83370/83370), done.
remote: Total 94802 (delta 15993), reused 53423 (delta 8081), pack-reused 0
Empfange Objekte: 100% (94802/94802), 127.46 MiB | 2.46 MiB/s, Fertig.
Löse Unterschiede auf: 100% (15993/15993), Fertig.
Aktualisiere Dateien: 100% (90213/90213), Fertig.
$ cd llvm-project/
$ git branch
* release/10.x
$ git log --oneline -1
edbe962459da (grafted, HEAD -> release/10.x, origin/release/10.x) [COFF] Don't treat DWARF sections as GC roots
Desired is a working together of --branch BRANCH
with --shallow-clone
option.
[1] https://stackoverflow.com/questions/8932389/git-shallow-clone-to-specific-tag
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
git shallow clone to specific tag - Stack Overflow
Workaround for issue (fatal: empty ident <> not allowed). This issue stems with a problem in the commit history of the linux repo....
Read more >How to Use Git Shallow Clone to Improve Performance
Solution: Git Shallow Clone. Git shallow clone lets you pull down just the latest commits, not the entire repo history. So if your...
Read more >Get up to speed with partial clone and shallow clone
Git's partial clone and shallow clone features are options that can help here, but they come with their own tradeoffs.
Read more >Attack of the Git Shallow Clones - Code and Bitters
Shallow -clone a particular commit. This one gets a little hairy, because --branch doesn't work with commit hashes. There are two big downsides ......
Read more >git-clone Documentation - Git
Create a shallow clone with a history, excluding commits reachable from a specified remote branch or tag. This option can be specified multiple...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I will push it once I have a version I am happy with.
@nathanchance
Can you push this, please? Thanks.