From c25b0262ea2a7322f8d2ef8aa12db05c5e5e2d1f Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 7 Mar 2013 19:03:06 -0400 Subject: Bugfix: git annex add, when ran without any file or directory specified, should add files in the current directory, but not act on unlocked files elsewhere in the tree. --- Git/LsFiles.hs | 2 +- debian/changelog | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Git/LsFiles.hs b/Git/LsFiles.hs index ca08fe261..82ce0edaf 100644 --- a/Git/LsFiles.hs +++ b/Git/LsFiles.hs @@ -105,7 +105,7 @@ typeChanged' ps l repo = do return (map (\f -> relPathDirToFile cwd $ top f) fs, cleanup) where prefix = [Params "diff --name-only --diff-filter=T -z"] - suffix = Param "--" : map File l + suffix = Param "--" : (if null l then [File "."] else map File l) {- A item in conflict has two possible values. - Either can be Nothing, when that side deleted the file. -} diff --git a/debian/changelog b/debian/changelog index 2facb33a0..bf6016f76 100644 --- a/debian/changelog +++ b/debian/changelog @@ -30,6 +30,9 @@ git-annex (4.20130228) UNRELEASED; urgency=low * assistant: XMPP git pull and push requests are cached and sent when presence of a new client is detected. * assistant: Fix syncing after XMPP pairing. + * Bugfix: git annex add, when ran without any file or directory specified, + should add files in the current directory, but not act on unlocked files + elsewhere in the tree. -- Joey Hess Wed, 27 Feb 2013 23:20:40 -0400 -- cgit v1.2.3