diff options
author | Joey Hess <joey@kitenet.net> | 2012-08-05 15:05:30 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-08-05 15:06:44 -0400 |
commit | 0833eb43a6ab3cd74c8c9fc77d235fd5644ac555 (patch) | |
tree | fec0d96e440d23960e13232030a55957379a0662 /Command | |
parent | fd61354431c0ee59e8adf6d026e14f0c718bd33b (diff) | |
parent | b885c0c6c8faa0c56e5f8cbdaa031652df6b26b4 (diff) |
Merge remote-tracking branch 'origin/master' into assistant
Conflicts:
Init.hs
Diffstat (limited to 'Command')
-rw-r--r-- | Command/Unused.hs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Command/Unused.hs b/Command/Unused.hs index b115eee83..09b4be5df 100644 --- a/Command/Unused.hs +++ b/Command/Unused.hs @@ -229,9 +229,12 @@ withKeysReferencedM a = withKeysReferenced' () calla withKeysReferenced' :: v -> (Key -> v -> Annex v) -> Annex v withKeysReferenced' initial a = go initial =<< files where - files = do - top <- fromRepo Git.repoPath - inRepo $ LsFiles.inRepo [top] + files = ifM isBareRepo + ( return [] + , do + top <- fromRepo Git.repoPath + inRepo $ LsFiles.inRepo [top] + ) go v [] = return v go v (f:fs) = do x <- Backend.lookupFile f |