Your message dated Sun, 05 May 2013 05:17:33 +0000
with message-id <[email protected]>
and subject line Bug#689101: fixed in etckeeper 1.0
has caused the Debian Bug report #689101,
regarding etckeeper confused by GIT_DIR and GIT_WORK_TREE environment variables
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.)


-- 
689101: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=689101
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: etckeeper
Version: 0.48

If etckeeper is using git as its VCS, setting the GIT_DIR or GIT_WORK_TREE
environment variables can lead to etckeeper using a repository other than
/etc/.git or a working directory other than /etc. This should be easily
fixed by sanitizing those variables before calling git.

Here's an example where I set GIT_DIR to point to the nagios-plugins git
repository:

root@host:~/git# git clone git://
github.com/nagios-plugins/nagios-plugins.git
Cloning into nagios-plugins...
[...clone completes...]
Resolving deltas: 100% (10894/10894), done.
root@host:~/git# etckeeper vcs log | head -5    # correct result
commit d2aed14f26b083aa9a29b741365776e16eabdb6f
Author: root <root@host.(none)>
Date:   Fri Sep 28 22:40:27 2012 -0700

    Initial commit
root@host:~/git# export GIT_DIR=/root/git/nagios-plugins/.git
root@host:~/git# etckeeper vcs log | head -5     # wrong
commit 05c4c9bfc649ba8f66e470667824200c2cda5314
Merge: c5583ab 2672e95
Author: Sven Nierlein <[email protected]>
Date:   Tue Sep 25 07:48:14 2012 -0700

This can really create a mess if, say, I've set GIT_DIR during some
development work unrelated to /etc and happen to use apt-get to install a
package:

root@host:~/git# apt-get install linuxlogo
[linuxlogo installs, then etckeeper makes commits to
/root/git/nagios-plugins/.git which replace the nagios-plugins files with
the contents of /etc]
root@host:~/git# git log | head -20
commit 493cf79c6e7726d974e468a9fcada45755de6b3e
Author: root <root@host.(none)>
Date:   Fri Sep 28 23:10:15 2012 -0700

    committing changes in /etc after apt run

    Package changes:

commit 0fd04d9aec990189180ed421344a551238bc49ba
Author: root <root@host>
Date:   Fri Sep 28 23:10:13 2012 -0700

    saving uncommitted changes in /etc prior to apt run

commit 05c4c9bfc649ba8f66e470667824200c2cda5314
Merge: c5583ab 2672e95
Author: Sven Nierlein <[email protected]>
Date:   Tue Sep 25 07:48:14 2012 -0700

    Merge pull request #19 from gvarisco/patch-1

Here's a less dramatic example with GIT_WORK_TREE set:

root@host:~/git# unset GIT_DIR
root@host:~/git# etckeeper vcs log | head -5  # back to normal
commit d2aed14f26b083aa9a29b741365776e16eabdb6f
Author: root <root@host.(none)>
Date:   Fri Sep 28 22:40:27 2012 -0700

    Initial commit
root@host:~/git# export GIT_WORK_TREE=/root/git/nagios-plugins
root@host:~/git# etckeeper commit
fatal: pathspec '.etckeeper' did not match any files
root@host:~/git# unset GIT_WORK_TREE
root@host:~/git# etckeeper commit
[master acd2dca] [... commit succeeds]

(The hostname has been anonymized in the above examples.)

Regards,
Alex Bradley

--- End Message ---
--- Begin Message ---
Source: etckeeper
Source-Version: 1.0

We believe that the bug you reported is fixed in the latest version of
etckeeper, which is due to be installed in the Debian FTP archive.

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.
Joey Hess <[email protected]> (supplier of updated etckeeper 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: SHA256

Format: 1.8
Date: Sat, 04 May 2013 23:45:25 -0400
Source: etckeeper
Binary: etckeeper
Architecture: source all
Version: 1.0
Distribution: unstable
Urgency: low
Maintainer: Joey Hess <[email protected]>
Changed-By: Joey Hess <[email protected]>
Description: 
 etckeeper  - store /etc in git, mercurial, bzr or darcs
Closes: 689101 701491
Changes: 
 etckeeper (1.0) unstable; urgency=low
 .
   [ Joey Hess ]
   * Unset GIT_DIR and GIT_WORK_TREE. Closes: #689101
   * PUSH_REMOTE can be set to automatically push to a remote on commit.
     Thanks, L. Alberto Giménez
   * Ignore fake-hwclock.data. Closes: #701491
 .
   [ Jelmer Vernooij ]
   * Auto-detect the VCS setting if there already is a repository in
     /etc.
Checksums-Sha1: 
 eab36a02b2f1a1c2c3d10fd18a7743e212c370b0 1523 etckeeper_1.0.dsc
 753c7917ac07fdaa678134b0bb869e3217bb52b9 47171 etckeeper_1.0.tar.gz
 cdbd71981258d0ad0060fb37277af6c86dcab9f9 36924 etckeeper_1.0_all.deb
Checksums-Sha256: 
 bb8e7bde0284591c81c834273a8eb929daa2bfee79ded5c7480fb7ec014a812c 1523 
etckeeper_1.0.dsc
 4a1ff557fd4be3bac66af75e40b1ec2df310c08af995b43fde8d661d455906ba 47171 
etckeeper_1.0.tar.gz
 bf86e15f50baf1a7acaf8765a86c2bb9f0b4622d162c701b97bf82ae83ce42bc 36924 
etckeeper_1.0_all.deb
Files: 
 17abd910f3ce053afa91bfbb5da01122 1523 admin optional etckeeper_1.0.dsc
 1d7e402b41721f2a9ea0b217b969ba89 47171 admin optional etckeeper_1.0.tar.gz
 66655296b81869088a0e16d8d20237a9 36924 admin optional etckeeper_1.0_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIVAwUBUYXoRMkQ2SIlEuPHAQg38hAApQQdJO9p2bY87QLrZuJbpwvZs3cD9lNO
46/bGGYB99Xs6yAfMz0yRGRpY3al7uJPb4fVVLJnETjQ5C6i6vR63nVLxmiW69uP
m4hkqzuvwZ1IPXdBh+dmnIAxYcKp6iN+2qrBJnWoxvdQ0TZr96MP37ziNbVI6qbW
1zhiEqzoz2feGmP2hR4OjdKaT3isK/+vwkupkXeHrctSN+drfqA5HmZWlnQi3cQA
laZK/4hKzdeDHsvH36hdumv47ZOCffsxfsr2uAE8u9vJdKSlps6v6pVpelCgGaHk
v0PC70tyfdJbXwhmNjPsnBuISs6z4GB+5wOUlmW+GiLC3pahlt0hiiyaXdIb785K
/ic2zaQIzEEjs12DaJruf2nuIqlxRhaE0bEuoEfL/ljghpeVSUL7f6fYXRiw8G6B
rxkpwBA9aiyrR0HP7clXNxR2JUyHSkhkY+BSTjCXmjruXGSkgVF59od5obd+DeEC
SLmZQz3LP0SLJg/UyBbNGNJwKerLc43rZKFUuXiLHg2p68H4LkHHt0aE9Sq+731p
114cqCPBgTz+zXnIrvNYHdl9VhU548JTwJLhfCOnZGW+EFaiTL3LzTohiASdouUF
T+0MVCbahd2Xfmab2b8eSI4Viv3nXGKQrXR0LUZl6xEVfqPex/rouW8ztBsf2Ja6
wreKzVFSv/8=
=YpjQ
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to