devel@ where you _can_ ask
 help / color / mirror / Atom feed
* [newbies] git fetch --all --tags (TOO MANY REFS)
@ 2025-10-21 14:29 Alexander Lubyagin
  2025-10-21 16:02 ` Leonid Znamenok
  2025-10-21 21:14 ` Dmitry V. Levin
  0 siblings, 2 replies; 3+ messages in thread
From: Alexander Lubyagin @ 2025-10-21 14:29 UTC (permalink / raw)
  To: devel-newbies

Доброго времени суток.

Подскажите, как правильно перенести большое количество тэгов из одного 
репозитория - в другой?

git push --tags ругается: Sorry, TOO MANY REFS (318) at once could not 
be accepted, consider using remote clone

Через поисковик решения не нашёл.

См. лог

$ git remote add src git://git.altlinux.org/gears/b/bind.git
$ git remote -v
origin    gitery:packages/bind.git (fetch)
origin    gitery:packages/bind.git (push)
src    git://git.altlinux.org/gears/b/bind.git (fetch)
src    git://git.altlinux.org/gears/b/bind.git (push)
$ git remote remove origin
$ git fetch --all --tags --prune
remote: Enumerating objects: 333323, done.
remote: Counting objects: 100% (94971/94971), done.
remote: Total 333323 (delta 94971), reused 94971 (delta 94971), 
pack-reused 238352 (from 1)
Receiving objects: 100% (333323/333323), 143.34 MiB | 10.14 MiB/s, done.
Resolving deltas: 100% (272968/272968), completed with 10481 local objects.
 From git://git.altlinux.org/gears/b/bind
  * [new branch]            4.0                        -> src/4.0
   ...
$ git remote remove src
$ git remote add origin gitery:packages/bind.git
$ git push --tags
Enter passphrase for key '/home/lk/.ssh/dfpl':
Enumerating objects: 371021, done.
Counting objects: 100% (364132/364132), done.
Delta compression using up to 4 threads
Compressing objects: 100% (72207/72207), done.
Writing objects: 100% (355665/355665), 166.88 MiB | 8.08 MiB/s, done.
Total 355665 (delta 290476), reused 344231 (delta 280072), pack-reused 0 
(from 0)
remote: Resolving deltas: 100% (290476/290476), completed with 3754 
local objects.
remote: Sorry, TOO MANY REFS (318) at once could not be accepted, 
consider using remote clone
To gitery:packages/bind.git
  ! [remote rejected]       8.3.1-alt1 -> 8.3.1-alt1 (pre-receive hook 
declined)
  ! [remote rejected]       9.10.4-alt0.M80P.1 -> 9.10.4-alt0.M80P.1 
(pre-receive hook declined)
  ! [remote rejected]       9.10.4-alt1 -> 9.10.4-alt1 (pre-receive hook 
declined)
  ! [remote rejected]       9.10.4-alt2 -> 9.10.4-alt2 (pre-receive hook 
declined)
  ! [remote rejected]       9.10.4.P8-alt0.M80P.1 -> 
9.10.4.P8-alt0.M80P.1 (pre-receive hook declined)
  ! [remote rejected]       9.10.4.P8-alt1 -> 9.10.4.P8-alt1 
(pre-receive hook declined)
  ! [remote rejected]       9.10.6-alt0.M80C.1 -> 9.10.6-alt0.M80C.1 
(pre-receive hook declined)
  ! [remote rejected]       9.10.6-alt0.M80P.1 -> 9.10.6-alt0.M80P.1 
(pre-receive hook declined)
  ! [remote rejected]       9.10.6-alt1 -> 9.10.6-alt1 (pre-receive hook 
declined)

   ...

=



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [newbies] git fetch --all --tags (TOO MANY REFS)
  2025-10-21 14:29 [newbies] git fetch --all --tags (TOO MANY REFS) Alexander Lubyagin
@ 2025-10-21 16:02 ` Leonid Znamenok
  2025-10-21 21:14 ` Dmitry V. Levin
  1 sibling, 0 replies; 3+ messages in thread
From: Leonid Znamenok @ 2025-10-21 16:02 UTC (permalink / raw)
  To: devel-newbies

21.10.2025 17:29, Alexander Lubyagin:
> Доброго времени суток.
>
> Подскажите, как правильно перенести большое количество тэгов из одного 
> репозитория - в другой? 

Скорее всего вам это не нужно. Собирается пакет из последнего тэга,
его и можно отправить. Все остальные не требуются.

Относительно организации удалённых репозиториев лучше использовать
следующую схему:

  origin         git://git.altlinux.org/gears/...
  workflow   gitery:packages/...
  upstream  ...

Чтобы вытащить актуальное состояние пакета:
  git pull origin

Отправлять, соответветственно, с помощью
  git push workflow *TAG*

Не нужно добавлять/удалять разные origin репозитории для этих действий.

> git push --tags ругается: Sorry, TOO MANY REFS (318) at once could not 
> be accepted, consider using remote clone
>
> Через поисковик решения не нашёл.
>
> См. лог
>
> $ git remote add src git://git.altlinux.org/gears/b/bind.git
> $ git remote -v
> origin    gitery:packages/bind.git (fetch)
> origin    gitery:packages/bind.git (push)
> src    git://git.altlinux.org/gears/b/bind.git (fetch)
> src    git://git.altlinux.org/gears/b/bind.git (push)
> $ git remote remove origin
> $ git fetch --all --tags --prune
> remote: Enumerating objects: 333323, done.
> remote: Counting objects: 100% (94971/94971), done.
> remote: Total 333323 (delta 94971), reused 94971 (delta 94971), 
> pack-reused 238352 (from 1)
> Receiving objects: 100% (333323/333323), 143.34 MiB | 10.14 MiB/s, done.
> Resolving deltas: 100% (272968/272968), completed with 10481 local 
> objects.
> From git://git.altlinux.org/gears/b/bind
>  * [new branch]            4.0                        -> src/4.0
>   ...
> $ git remote remove src
> $ git remote add origin gitery:packages/bind.git
> $ git push --tags
> Enter passphrase for key '/home/lk/.ssh/dfpl':
> Enumerating objects: 371021, done.
> Counting objects: 100% (364132/364132), done.
> Delta compression using up to 4 threads
> Compressing objects: 100% (72207/72207), done.
> Writing objects: 100% (355665/355665), 166.88 MiB | 8.08 MiB/s, done.
> Total 355665 (delta 290476), reused 344231 (delta 280072), pack-reused 
> 0 (from 0)
> remote: Resolving deltas: 100% (290476/290476), completed with 3754 
> local objects.
> remote: Sorry, TOO MANY REFS (318) at once could not be accepted, 
> consider using remote clone
> To gitery:packages/bind.git
>  ! [remote rejected]       8.3.1-alt1 -> 8.3.1-alt1 (pre-receive hook 
> declined)
>  ! [remote rejected]       9.10.4-alt0.M80P.1 -> 9.10.4-alt0.M80P.1 
> (pre-receive hook declined)
>  ! [remote rejected]       9.10.4-alt1 -> 9.10.4-alt1 (pre-receive 
> hook declined)
>  ! [remote rejected]       9.10.4-alt2 -> 9.10.4-alt2 (pre-receive 
> hook declined)
>  ! [remote rejected]       9.10.4.P8-alt0.M80P.1 -> 
> 9.10.4.P8-alt0.M80P.1 (pre-receive hook declined)
>  ! [remote rejected]       9.10.4.P8-alt1 -> 9.10.4.P8-alt1 
> (pre-receive hook declined)
>  ! [remote rejected]       9.10.6-alt0.M80C.1 -> 9.10.6-alt0.M80C.1 
> (pre-receive hook declined)
>  ! [remote rejected]       9.10.6-alt0.M80P.1 -> 9.10.6-alt0.M80P.1 
> (pre-receive hook declined)
>  ! [remote rejected]       9.10.6-alt1 -> 9.10.6-alt1 (pre-receive 
> hook declined)
>
>   ...
>
> =
>
> _______________________________________________
> devel-newbies mailing list
> devel-newbies@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/devel-newbies

-- 
---
WBR, Leonid (respublica@altlinux.org)




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [newbies] git fetch --all --tags (TOO MANY REFS)
  2025-10-21 14:29 [newbies] git fetch --all --tags (TOO MANY REFS) Alexander Lubyagin
  2025-10-21 16:02 ` Leonid Znamenok
@ 2025-10-21 21:14 ` Dmitry V. Levin
  1 sibling, 0 replies; 3+ messages in thread
From: Dmitry V. Levin @ 2025-10-21 21:14 UTC (permalink / raw)
  To: devel-newbies

On Tue, Oct 21, 2025 at 05:29:17PM +0300, Alexander Lubyagin wrote:
> Доброго времени суток.
> 
> Подскажите, как правильно перенести большое количество тэгов из одного 
> репозитория - в другой?
> 
> git push --tags ругается: Sorry, TOO MANY REFS (318) at once could not 
> be accepted, consider using remote clone
> 
> Через поисковик решения не нашёл.

https://www.altlinux.org/Git.alt/%D0%9A%D1%80%D0%B0%D1%82%D0%BA%D0%BE%D0%B5_%D1%80%D1%83%D0%BA%D0%BE%D0%B2%D0%BE%D0%B4%D1%81%D1%82%D0%B2%D0%BE#%D0%9A%D0%BB%D0%BE%D0%BD%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5_%D1%87%D1%83%D0%B6%D0%BE%D0%B3%D0%BE_%D1%80%D0%B5%D0%BF%D0%BE%D0%B7%D0%B8%D1%82%D0%BE%D1%80%D0%B8%D1%8F_%D0%B4%D0%BB%D1%8F_%D1%80%D0%B0%D0%B1%D0%BE%D1%82%D1%8B_%D0%BD%D0%B0%D0%B4_%D0%BD%D0%B8%D0%BC


-- 
ldv


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-10-21 21:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-21 14:29 [newbies] git fetch --all --tags (TOO MANY REFS) Alexander Lubyagin
2025-10-21 16:02 ` Leonid Znamenok
2025-10-21 21:14 ` Dmitry V. Levin

devel@ where you _can_ ask

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-newbies/0 devel-newbies/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel-newbies devel-newbies/ http://lore.altlinux.org/devel-newbies \
		devel-newbies@lists.altlinux.org devel-newbies@lists.altlinux.ru devel-newbies@lists.altlinux.com
	public-inbox-index devel-newbies

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel-newbies


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git