Package: etckeeper
Version: 0.48
Severity: wishlist

etckeeper does not take the "-m" option for the commit command as svn/git/cvs 
usually 
does. This leads to a lot of commit messages that say "-m" on my systems, as
people (including myself) are used to type "commit -m 'my message'" instead of
"commit 'my message'".

The proposed patch removes "-m" after a commit command:

--- etckeeper.orig  2011-03-28 09:02:43.000000000 +0200
+++ etckeeper 2011-03-28 09:04:31.000000000 +0200
@@ -61,6 +61,11 @@
  command=pre-install
 fi
 
+# remove -m for commit
+if [ "$command" = "commit" -a "x$1" = "x-m" ]; then
+  shift 1
+fi
+
 if [ ! -d "$ETCKEEPER_CONF_DIR/$command.d" ]; then
  echo "etckeeper: $ETCKEEPER_CONF_DIR/$command.d does not exist" >&2
  exit 1


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

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

Versions of packages etckeeper depends on:
ii  bzr                          2.1.2-1     easy to use distributed version co
ii  debconf [debconf-2.0]        1.5.36.1    Debian configuration management sy
ii  git [git-core]               1:1.7.2.5-1 fast, scalable, distributed revisi
ii  git-core                     1:1.7.2.5-1 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:
  etckeeper/commit_failed:
  etckeeper/purge: true



-- 
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