From 77b777aa4c5f640905725b42efe54bb7c469f8c0 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 30 Oct 2017 12:47:13 -0400 Subject: Fix exporting of non-annexed files to external special remotes. Actual problem is the keyName was set to "Ref \"sha\"", which led to this follow-on failure since it contained a space. The bad data would also get into the export database when exporting to a non-external special remote. Looking briefly at that, I don't think the bad data will lead to anything more than a re-upload of the file content now that the problem has been fixed. This commit was sponsored by Peter Hogg on Patreon. --- Annex/Export.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Annex') diff --git a/Annex/Export.hs b/Annex/Export.hs index 0629c3dcc..b5be2efba 100644 --- a/Annex/Export.hs +++ b/Annex/Export.hs @@ -31,7 +31,7 @@ exportKey sha = mk <$> catKey sha where mk (Just k) = AnnexKey k mk Nothing = GitKey $ Key - { keyName = show sha + { keyName = Git.fromRef sha , keyVariety = SHA1Key (HasExt False) , keySize = Nothing , keyMtime = Nothing -- cgit v1.2.3