public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug web/114223] New: Utilize filtering for git://gcc.gnu.org/git/gcc.git
@ 2024-03-03 20:18 dilyan.palauzov at aegee dot org
2024-03-03 21:01 ` [Bug web/114223] " mark at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: dilyan.palauzov at aegee dot org @ 2024-03-03 20:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114223
Bug ID: 114223
Summary: Utilize filtering for git://gcc.gnu.org/git/gcc.git
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: web
Assignee: unassigned at gcc dot gnu.org
Reporter: dilyan.palauzov at aegee dot org
Target Milestone: ---
I want to create a treeless-copy of the git://gcc.gnu.org/git/gcc.git .
https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/
explains what treeless is.
> $ git clone --filter=tree:0 git://gcc.gnu.org/git/gcc.git
> Cloning into 'gcc'...
> warning: filtering not recognized by server, ignoring
…
When I utilize https://github.com/HaleTom/git-bloblessify/ to strip the
unneeded git blobs, eventually it reports
…
Fetching tags and HEAD's trees...
warning: filtering not recognized by server, ignoring
remote: Enumerating objects: 2342589, done.
remote: Counting objects: 100% (316017/316017), done.
remote: Compressing objects: 100% (20610/20610), done.
remote: Total 2342589 (delta 307150), reused 295435 (delta 295402), pack-reused
2026572
Receiving objects: 100% (2342589/2342589), 929.71 MiB | 6.40 MiB/s, done.
Resolving deltas: 100% (1915402/1915402), done.
warning: filtering not recognized by server, ignoring
remote: Enumerating objects: 2622955, done.
remote: Counting objects: 100% (301209/301209), done.
remote: Compressing objects: 100% (21051/21051), done.
remote: Total 2622955 (delta 293664), reused 280316 (delta 280149), pack-reused
2321746
Receiving objects: 100% (2622955/2622955), 1.01 GiB | 5.50 MiB/s, done.
Resolving deltas: 100% (2148507/2148507), done.
fatal: bad object 31ff5e249df46ff122b115c86af04022307fafa4
error: git://gcc.gnu.org/git/gcc.git did not send all necessary objects
git-bloblessify: clean-up: previous git objects have been restored
git-bloblessify: check remote origin config remains correct
remote.origin.url=git://gcc.gnu.org/git/gcc.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
remote.origin.promisor=true
remote.origin.partialclonefilter=blob:none
git-bloblessify: exiting with error code: 1
I guess the
fatal: bad object 31ff5e249df46ff122b115c86af04022307fafa4
error: git://gcc.gnu.org/git/gcc.git did not send all necessary objects
means some network error and retrying might help. However retrying takes very
long, and might also not work, because of some other network error.
Please utilize server-side filtering on git://gcc.gnu.org/git/gcc.git , so
that
> $ git clone --filter=tree:0 git://gcc.gnu.org/git/gcc.git
does not print
> warning: filtering not recognized by server, ignoring
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug web/114223] Utilize filtering for git://gcc.gnu.org/git/gcc.git
2024-03-03 20:18 [Bug web/114223] New: Utilize filtering for git://gcc.gnu.org/git/gcc.git dilyan.palauzov at aegee dot org
@ 2024-03-03 21:01 ` mark at gcc dot gnu.org
2024-03-04 2:07 ` fche at redhat dot com
2024-03-04 10:30 ` redi at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: mark at gcc dot gnu.org @ 2024-03-03 21:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114223
Mark Wielaard <mark at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mark at gcc dot gnu.org
--- Comment #1 from Mark Wielaard <mark at gcc dot gnu.org> ---
I believe this is enabled by setting the following settings described at
https://git-scm.com/docs/git-config#Documentation/git-config.txt-uploadpackallowFilter
uploadpack.allowFilter
If this option is set, upload-pack will support partial clone and partial
fetch object filtering.
uploadpackfilter.allow
Provides a default value for unspecified object filters (see: the below
configuration variable). If set to true, this will also enable all filters
which get added in the future. Defaults to true.
uploadpackfilter.<filter>.allow
Explicitly allow or ban the object filter corresponding to <filter>, where
<filter> may be one of: blob:none, blob:limit, object:type, tree, sparse:oid,
or combine. If using combined filters, both combine and all of the nested
filter kinds must be allowed. Defaults to uploadpackfilter.allow.
uploadpackfilter.tree.maxDepth
Only allow --filter=tree:<n> when <n> is no more than the value of
uploadpackfilter.tree.maxDepth. If set, this also implies
uploadpackfilter.tree.allow=true, unless this configuration variable had
already been set. Has no effect if unset.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug web/114223] Utilize filtering for git://gcc.gnu.org/git/gcc.git
2024-03-03 20:18 [Bug web/114223] New: Utilize filtering for git://gcc.gnu.org/git/gcc.git dilyan.palauzov at aegee dot org
2024-03-03 21:01 ` [Bug web/114223] " mark at gcc dot gnu.org
@ 2024-03-04 2:07 ` fche at redhat dot com
2024-03-04 10:30 ` redi at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: fche at redhat dot com @ 2024-03-04 2:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114223
Frank Ch. Eigler <fche at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
CC| |fche at redhat dot com
--- Comment #2 from Frank Ch. Eigler <fche at redhat dot com> ---
/etc/gitconfig now sports:
[uploadpack]
allowFilter = true
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug web/114223] Utilize filtering for git://gcc.gnu.org/git/gcc.git
2024-03-03 20:18 [Bug web/114223] New: Utilize filtering for git://gcc.gnu.org/git/gcc.git dilyan.palauzov at aegee dot org
2024-03-03 21:01 ` [Bug web/114223] " mark at gcc dot gnu.org
2024-03-04 2:07 ` fche at redhat dot com
@ 2024-03-04 10:30 ` redi at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2024-03-04 10:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114223
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Дилян Палаузов from comment #0)
> I want to create a treeless-copy of the git://gcc.gnu.org/git/gcc.git .
N.B. you could have just used https://github.com/gcc-mirror/gcc
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-03-04 10:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-03 20:18 [Bug web/114223] New: Utilize filtering for git://gcc.gnu.org/git/gcc.git dilyan.palauzov at aegee dot org
2024-03-03 21:01 ` [Bug web/114223] " mark at gcc dot gnu.org
2024-03-04 2:07 ` fche at redhat dot com
2024-03-04 10:30 ` redi at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).