From 090a69f00c9c1f7fd98859cb274ff5e09e9d4f7d Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 18 Apr 2013 16:27:17 -0400 Subject: [PATCH] assistant: Work around misfeature in git 1.8.2 that makes `git commit --alow-empty -m ""` run an editor. See http://git-annex.branchable.com/bugs/assistant_hangs_during_commit/ --- Assistant/Threads/Committer.hs | 12 ++++++++---- debian/changelog | 7 +++++++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/Assistant/Threads/Committer.hs b/Assistant/Threads/Committer.hs index 727b858405..aaec252067 100644 --- a/Assistant/Threads/Committer.hs +++ b/Assistant/Threads/Committer.hs @@ -175,10 +175,14 @@ commitStaged = do return True where nomessage ps - | Git.Version.older "1.7.2" = Param "-m" - : Param "autocommit" : ps - | otherwise = Param "--allow-empty-message" - : Param "-m" : Param "" : ps + | Git.Version.older "1.7.2" = + Param "-m" : Param "autocommit" : ps + | Git.Version.older "1.7.8" = + Param "--allow-empty-message" : + Param "-m" : Param "" : ps + | otherwise = + Param "--allow-empty-message" : + Param "--no-edit" : Param "-m" : Param "" : ps {- OSX needs a short delay after a file is added before locking it down, - when using a non-direct mode repository, as pasting a file seems to diff --git a/debian/changelog b/debian/changelog index 61a0d3b5c5..8b9cccd155 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +git-annex (4.20130418) UNRELEASED; urgency=low + + * assistant: Work around misfeature in git 1.8.2 that makes + `git commit --alow-empty -m ""` run an editor. + + -- Joey Hess Thu, 18 Apr 2013 16:22:48 -0400 + git-annex (4.20130417) unstable; urgency=low * initremote: Generates encryption keys with high quality entropy.