init: When run in an already initalized repository, and without a description specified, don't delete the old description.

This commit is contained in:
Joey Hess 2011-11-12 15:42:52 -04:00
parent e9bfa8eaed
commit cea65b9e5b
2 changed files with 3 additions and 1 deletions

View file

@ -27,5 +27,5 @@ start ws = do
perform :: String -> CommandPerform
perform description = do
initialize (Just description)
initialize $ if null description then Nothing else Just description
next $ return True

2
debian/changelog vendored
View file

@ -4,6 +4,8 @@ git-annex (3.20111112) UNRELEASED; urgency=low
* Avoid doing auto-merging in commands that don't need fully current
information from the git-annex branch. In particular, git annex add
no longer needs to auto-merge.
* init: When run in an already initalized repository, and without
a description specified, don't delete the old description.
-- Joey Hess <joeyh@debian.org> Sat, 12 Nov 2011 14:50:21 -0400