Your message dated Thu, 06 Jan 2011 14:34:08 +0000
with message-id <[email protected]>
and subject line Bug#600412: fixed in gitosis 0.2+20090917-14
has caused the Debian Bug report #600412,
regarding please prefere foo.git over foo
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
600412: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=600412
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: gitosis
Version: 0.2+20090917-10
Severity: normal
Consider the following snippet of gitosis.conf:
[repo foo]
owner = Me
description = foo
gitweb = yes
[repo foo/bar]
owner = Me
description = foobar
gitweb = yes
I now commit to these two repositories:
mkdir ~/bar
cd ~/bar
git init
git romote add origin gito...@host:foo/bar.git
touch FOOBAR
git add FOOBAR
git commit
git push origin master
mkdir ~/foo
cd ~/foo
git init
git romote add origin gito...@host:foo.git
touch FOO
git add FOO
git commit
git push origin master
If I now inspect /srv/gitosis, I'll see these files:
/srv/gitosis/repositories/foo.git/description
/srv/gitosis/repositories/foo/description
/srv/gitosis/repositories/foo/bar.git/description
So the gitweb description file gets written to both 'foo.git' and 'foo',
the former being wrong. Also if we inspect
/srv/gitosis/gitosis/projects.list, we'll see this:
foo Me
foo%2Fbar.git Me
In other words, gitosis has picked up 'foo' as a repository *instead* of
(the correct) 'foo.git'. This causes this repository to be absent from
gitweb ('foo' doesn't show up either, since it's not a valid
repository).
Looking at the code at /usr/share/pyshared/gitosis/gitweb.py, lines 77-84,
we see this:
if not os.path.exists(os.path.join(repositories, name)):
namedotgit = '%s.git' % name
if os.path.exists(os.path.join(repositories, namedotgit)):
name = namedotgit
else:
log.warning(
'Cannot find %(name)r in %(repositories)r'
% dict(name=name, repositories=repositories))
It appears from this code, that gitosis will pick any repository without
the .git suffix over any with it, and I believe this is the reason why
'foo' is picked up incorrectly.
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages gitosis depends on:
ii adduser 3.112 add and remove users and groups
ii debconf [debconf-2.0] 1.5.35 Debian configuration management sy
ii git [git-core] 1:1.7.1-1.1 fast, scalable, distributed revisi
ii openssh-server 1:5.5p1-4 secure shell (SSH) server, for sec
ii python 2.6.6-3 interactive high-level object-orie
ii python-setuptools 0.6.14-1 Python Distutils Enhancements (set
ii python-support 1.0.10 automated rebuilding support for P
ii sudo 1.7.4p4-2 Provide limited super user privile
gitosis recommends no packages.
Versions of packages gitosis suggests:
pn git-daemon-run <none> (no description available)
pn gitweb <none> (no description available)
-- debconf information:
gitosis/directory: /srv/gitosis
gitosis/username: gitosis
gitosis/key:
--- End Message ---
--- Begin Message ---
Source: gitosis
Source-Version: 0.2+20090917-14
We believe that the bug you reported is fixed in the latest version of
gitosis, which is due to be installed in the Debian FTP archive:
gitosis_0.2+20090917-14.debian.tar.gz
to main/g/gitosis/gitosis_0.2+20090917-14.debian.tar.gz
gitosis_0.2+20090917-14.dsc
to main/g/gitosis/gitosis_0.2+20090917-14.dsc
gitosis_0.2+20090917-14_all.deb
to main/g/gitosis/gitosis_0.2+20090917-14_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Daniel Baumann <[email protected]> (supplier of updated gitosis package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Thu, 06 Jan 2011 14:54:38 +0100
Source: gitosis
Binary: gitosis
Architecture: source all
Version: 0.2+20090917-14
Distribution: experimental
Urgency: low
Maintainer: Daniel Baumann <[email protected]>
Changed-By: Daniel Baumann <[email protected]>
Description:
gitosis - git repository hosting application
Closes: 600412
Changes:
gitosis (0.2+20090917-14) experimental; urgency=low
.
* Adding patch to prefere foo.git over foo instead of the other way
round (Closes: #600412).
Checksums-Sha1:
c59d62d94df54653b76f5d53ab287bcaa504ae77 1263 gitosis_0.2+20090917-14.dsc
5ca52d978695f8447bcb42efcfc1aa70a1770703 18950
gitosis_0.2+20090917-14.debian.tar.gz
73e09499fea0d4de59ea0e34dda5ab936ec25b88 41464 gitosis_0.2+20090917-14_all.deb
Checksums-Sha256:
b2669ca47bd48c323678b2042e78e3420e15f5bb22829116f0bc28e4f1cee8fc 1263
gitosis_0.2+20090917-14.dsc
7f607ef41ee7f62e4fd394c55178e78aa7e38e4115b6adf25c0b41140b78bd4d 18950
gitosis_0.2+20090917-14.debian.tar.gz
02b252117ebd74791dc25aa9a9af6c72b197c39cbc6d92d74584694c47c6c9f2 41464
gitosis_0.2+20090917-14_all.deb
Files:
c7866262e9736265c8c05ea9c02ceea9 1263 vcs optional gitosis_0.2+20090917-14.dsc
1e34609dc97a8e69a933afa51ffc90bd 18950 vcs optional
gitosis_0.2+20090917-14.debian.tar.gz
4be125b86af887b282151153162ce665 41464 vcs optional
gitosis_0.2+20090917-14_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAk0lywoACgkQ+C5cwEsrK55rSACeKV9DTOzhKskSbkeOzxoZqAHX
JawAn2d8B2tdQe4l8ew0owoAPEX2IRBF
=d2AO
-----END PGP SIGNATURE-----
--- End Message ---