summaryrefslogtreecommitdiff
path: root/Annex
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2017-10-30 12:47:13 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2017-10-30 12:47:13 -0400
commit77b777aa4c5f640905725b42efe54bb7c469f8c0 (patch)
tree7507292a70f5d59f0f06ce295a5bd3b7f18bbda9 /Annex
parent5d7332826c6b85e41645039415f4151b57db94de (diff)
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.
Diffstat (limited to 'Annex')
-rw-r--r--Annex/Export.hs2
1 files changed, 1 insertions, 1 deletions
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