Package: etckeeper
Version: 0.48
Severity: normal

If you have added entries to .gitignore outside its "managed by
etckeeper" section, they are lost upon uninit, as uninit naively
deletes the whole file. This is in contrast to update-ignore
behaviour, which afaics carefully only munges the "managed by etckeeper"
section. IMHO etckeeper should be more careful upon uninit, and only nuke
the "managed by etckeeper" section rather than the whole file -
at least if the .gitignore has entries outside the managed section. 

I _didn't_ want certain files with password hashes and keys checked into our
etckeeper-augmented git repo (which we then wanted to push to a
central server), so manually added them to .gitignore outside the managed
section, and then uninited before going to recreate a clean repo...

Okay, a mistake one would only make once, and it's not like
the uninit action does a lot right now that can't be done manually
instead, but anyway.

Hmm. I wonder would .git/info/exclude be an alternative for
etckeeper to manage, and reserve .gitignore to the user. Maybe not though,
after all you can't check in .git/info/exclude but you can check in 
.gitignore, and you might want to do that even if etckeeper is 
auto-managing it, to preserve the history of changes to its
auto-management...

-- System Information:
Debian Release: 6.0.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-0.bpo.2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages etckeeper depends on:
ii  debconf [debconf-2.0]        1.5.36.1    Debian configuration management sy
ii  git [git-core]               1:1.7.2.5-3 fast, scalable, distributed revisi
ii  git-core                     1:1.7.2.5-3 fast, scalable, distributed revisi

Versions of packages etckeeper recommends:
ii  cron                          3.0pl1-116 process scheduling daemon

etckeeper suggests no packages.

-- Configuration Files:
/etc/etckeeper/etckeeper.conf changed [not included]

-- debconf information excluded
--
IT Department

Squared Financial Services Limited
www.squaredfinancial.com
Custom House Plaza 2
Harbourmaster Place, IFSC, Dublin 1
Ireland


Switch:  + 353 1 661 0500
Direct:  + 353 1 662 1930
Fax:     + 353 1 661 1087


Squared Financial Services Limited is regulated by the Central Bank of Ireland.
Registered Office: Custom House Plaza 2, Harbourmaster Place, IFSC, Dublin 1, 
Ireland. Registered No. 399289.
Directors: Philippe Ghanem (Swiss), Magid Khoury (Swiss), Ronnie Culliton, 
Bachir Rabbat (Canadian), Jeff Grossman, Youssef
Barakat (Lebanese).
----------------------------------------------------------------------------------------------------------------------------------
This email (including any attachments) may contain confidential and/or 
privileged information. If you are not the intended
recipient (or have received this email by mistake), please notify the sender 
and kindly destroy this email. Any unauthorised
copying, disclosure or dissemination of the material in this email in whole or 
in part is strictly prohibited. Email transmission
security and error-free status cannot be guaranteed as information could be 
intercepted, corrupted, destroyed, delayed,
incomplete, or contain viruses. The sender therefore does not accept liability 
for any errors or omissions in the contents of this
message, which may arise as a result of email transmission.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to