ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] проблема с GIT...
Date: Wed, 26 Apr 2006 12:59:58 +0400
Message-ID: <20060426085958.GA3358@master.mivlgu.local> (raw)
In-Reply-To: <20060426072727.GO11654@immo.ru>

[-- Attachment #1: Type: text/plain, Size: 4958 bytes --]

On Wed, Apr 26, 2006 at 11:27:27AM +0400, Alexey I. Froloff wrote:
> "git" can mean anything, depending on your mood.
> ...
> "goddamn idiotic truckload of sh*t": when it break
> 
> $ git ls-remote rsync://rsync.altlinux.ru/people/raorn/git/wmvolman.git
> 87d8caf0a9083c2adc2bcdad4d3a06bda7027caa        refs/heads/master
> 87d8caf0a9083c2adc2bcdad4d3a06bda7027caa        refs/heads/origin
> 393b5bd10c25972f6c0503ccb375a758c38dcd5e        refs/tags/v0.5
> $ git ls-remote ~/2alt/ftp.alt/git/wmvolman.git                        
> 87d8caf0a9083c2adc2bcdad4d3a06bda7027caa        HEAD
> 87d8caf0a9083c2adc2bcdad4d3a06bda7027caa        refs/heads/master
> 87d8caf0a9083c2adc2bcdad4d3a06bda7027caa        refs/heads/origin
> 393b5bd10c25972f6c0503ccb375a758c38dcd5e        refs/tags/v0.5

Действительно, по http и rsync HEAD не показывается:

$ git ls-remote git://www.kernel.org/pub/scm/linux/kernel/git/marcelo/linux-2.4.git
3c1e09e173e5fec7535a3795c4bc7870c8026ff3        HEAD
3c1e09e173e5fec7535a3795c4bc7870c8026ff3        refs/heads/master
e684f066dff5628bb61ad1912de6e8058b5b4c7d        refs/heads/net-2.4
da29f83b221f5f51ecbca931b856973e704710bb        refs/heads/sparc-2.4
e3b8d6f151669d62fbd55ab8367dd477418d40c9        refs/tags/v2.4.32
cbff79e43c1a47953098fdf3168dbc8320eba515        refs/tags/v2.4.32-pre1
a3bbfff57ea7fb30bda2d175d738516ed0ce67ae        refs/tags/v2.4.32-pre2
3e6c661ddb88083186ef55ced851d5a834bc34c0        refs/tags/v2.4.32-pre3
d53393237d7c6a04976a235420304b9b0a5063e0        refs/tags/v2.4.32-rc1
992133233c7a46beead186694c5e11d5eef0f9a8        refs/tags/v2.4.32-rc2
ab374f2f73a4991d811c4181c28589529f335c8c        refs/tags/v2.4.32-rc3
75d117d9bd191f4ef9222ec02edfc3f7a35c47bd        refs/tags/v2.4.33-pre1
dc3c23e28d20349c1055f51e30d6cbf59dd0c4fa        refs/tags/v2.4.33-pre2

$ git ls-remote http://www.kernel.org/pub/scm/linux/kernel/git/marcelo/linux-2.4.git
3c1e09e173e5fec7535a3795c4bc7870c8026ff3        refs/heads/master
e684f066dff5628bb61ad1912de6e8058b5b4c7d        refs/heads/net-2.4
da29f83b221f5f51ecbca931b856973e704710bb        refs/heads/sparc-2.4
e3b8d6f151669d62fbd55ab8367dd477418d40c9        refs/tags/v2.4.32
cbff79e43c1a47953098fdf3168dbc8320eba515        refs/tags/v2.4.32-pre1
a3bbfff57ea7fb30bda2d175d738516ed0ce67ae        refs/tags/v2.4.32-pre2
3e6c661ddb88083186ef55ced851d5a834bc34c0        refs/tags/v2.4.32-pre3
d53393237d7c6a04976a235420304b9b0a5063e0        refs/tags/v2.4.32-rc1
992133233c7a46beead186694c5e11d5eef0f9a8        refs/tags/v2.4.32-rc2
ab374f2f73a4991d811c4181c28589529f335c8c        refs/tags/v2.4.32-rc3
75d117d9bd191f4ef9222ec02edfc3f7a35c47bd        refs/tags/v2.4.33-pre1
dc3c23e28d20349c1055f51e30d6cbf59dd0c4fa        refs/tags/v2.4.33-pre2

$ git ls-remote rsync://rsync.kernel.org/pub/scm/linux/kernel/git/marcelo/linux-2.4.git
3c1e09e173e5fec7535a3795c4bc7870c8026ff3        refs/heads/master
e684f066dff5628bb61ad1912de6e8058b5b4c7d        refs/heads/net-2.4
da29f83b221f5f51ecbca931b856973e704710bb        refs/heads/sparc-2.4
e3b8d6f151669d62fbd55ab8367dd477418d40c9        refs/tags/v2.4.32
cbff79e43c1a47953098fdf3168dbc8320eba515        refs/tags/v2.4.32-pre1
a3bbfff57ea7fb30bda2d175d738516ed0ce67ae        refs/tags/v2.4.32-pre2
3e6c661ddb88083186ef55ced851d5a834bc34c0        refs/tags/v2.4.32-pre3
d53393237d7c6a04976a235420304b9b0a5063e0        refs/tags/v2.4.32-rc1
992133233c7a46beead186694c5e11d5eef0f9a8        refs/tags/v2.4.32-rc2
ab374f2f73a4991d811c4181c28589529f335c8c        refs/tags/v2.4.32-rc3
75d117d9bd191f4ef9222ec02edfc3f7a35c47bd        refs/tags/v2.4.33-pre1
dc3c23e28d20349c1055f51e30d6cbf59dd0c4fa        refs/tags/v2.4.33-pre2

> В случае с ssh:// (на работе клоню из дома) картина совпадает с
> локальным repo...
> 
> И git-clone поэтому не делает git-read-tree -m -u -v HEAD HEAD
> 
> Что я не так делаю?  Делал так:
> 
> По Everyday GIT / Individual Developer (Standalone) / Extract a
> tarball and create a working tree and a new repository to keep
> track of it.
> 
> $ tar zxf wmvolman.tar.gz
> $ cd wmvolman
> $ git-init-db
> $ git add .
> $ git commit -m 'import of wmvolman source tree.'
> $ git tag v0.5
> 
> Дальше mv .git .../wmvolman.git

Ещё надо бы chmod +x wmvolman.git/hooks/post-update (там делается вызов
git-update-server-info).

> $ git clone .../wmvolman.git wmvolman
> 
> edit/compile/test
> $ git add
> $ git commit
> $ git update-server-info

Это надо делать в том репозитории, который будет заливаться на ftp (лучше
всего через hooks/post-update).

> $ git push origin
> 
> Потом всё заливается на ftp...  И в какой-то момент HEAD пропал.
> Куда смотреть, что копать?

Похоже, поддержка rsync в git-clone немного сломана - HEAD там просто не
читается (при использовании http это там делается явно).  Впрочем, в
простейшем случае (когда HEAD указывает в refs/heads/master) git checkout
исправляет ситуацию.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2006-04-26  8:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-26  7:27 Alexey I. Froloff
2006-04-26  8:59 ` Sergey Vlasov [this message]
2006-04-26  9:24   ` Alexey I. Froloff
2006-04-26  9:42     ` Sergey Vlasov
2006-04-26  9:49       ` Alexey I. Froloff

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060426085958.GA3358@master.mivlgu.local \
    --to=vsu@altlinux.ru \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

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


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