convert createAnnexDirectory to use createDirectoryUnder
authorJoey Hess <joeyh@joeyh.name>
Thu, 5 Mar 2020 18:27:45 +0000 (14:27 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 5 Mar 2020 18:33:04 +0000 (14:33 -0400)
commitebbc5004faf74e3fd2cb251e7a7fd2a0223ff84a
tree6cb7e3db06ba4d3587784d4176e6a3befc1a6aef
parent5b022eea87dab7d94f67c5d44a465c5c0d1827be
convert createAnnexDirectory to use createDirectoryUnder

It will create foo/.git/annex/, but not foo/.git/ and not foo/.

This will avoid it creating an empty path to a repo when a drive is
yanked out and the mount point goes away, for example.
Annex/Perms.hs
Utility/Directory.hs