aboutsummaryrefslogtreecommitdiff
path: root/Annex.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2010-10-13 01:43:24 -0400
committerGravatar Joey Hess <joey@kitenet.net>2010-10-13 01:43:24 -0400
commit4ecebfb218e58fb85a8e4484af93b5178a8046e7 (patch)
tree82981d149dfab8d6b8fb29e718dcf53aaa178f6d /Annex.hs
parent3a18b6d2ae95f8b536640f2438437d1d0a99082e (diff)
bugfx
Diffstat (limited to 'Annex.hs')
-rw-r--r--Annex.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Annex.hs b/Annex.hs
index dd6912d85..63cf0d2fb 100644
--- a/Annex.hs
+++ b/Annex.hs
@@ -97,6 +97,9 @@ unannexFile state file = do
gitRun (repo state) ["commit", "-m",
("git-annex unannexed " ++ file),
file]
+ -- git rm deletes empty directories;
+ -- put them back
+ createDirectoryIfMissing True (parentDir file)
renameFile src file
logStatus state key ValueMissing
return ()