bugfix: Pass --full-tree when using git ls-files to get a list of files on the git-annex branch, so it works when run in a subdirectory. This bug affected git-annex unused, and potentially also transitions running code and other things.

This commit is contained in:
Joey Hess 2015-07-06 14:09:24 -04:00
parent c9c63b092e
commit 174da80ddc
4 changed files with 23 additions and 0 deletions

View file

@ -316,6 +316,7 @@ files = do
branchFiles :: Annex [FilePath]
branchFiles = withIndex $ inRepo $ Git.Command.pipeNullSplitZombie
[ Param "ls-tree"
, Param "--full-tree"
, Param "--name-only"
, Param "-r"
, Param "-z"