From 8f2cde77f63fe873341554192b1c7df71cc8bdc1 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 14 Apr 2016 14:30:15 -0400 Subject: Preserve execute bits of unlocked files in v6 mode. When annex.thin is set, adding an object will add the execute bits to the work tree file, and this does mean that the annex object file ends up executable. This doesn't add any complexity that wasn't already present, because git annex add of an executable file has always ingested it so that the annex object ends up executable. But, since an annex object file can be executable or not, when populating an unlocked file from one, the executable bit is always added or removed to match the mode of the pointer file. --- Upgrade/V5.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Upgrade') diff --git a/Upgrade/V5.hs b/Upgrade/V5.hs index 08e9271a0..e5ca505ac 100644 --- a/Upgrade/V5.hs +++ b/Upgrade/V5.hs @@ -99,7 +99,7 @@ upgradeDirectWorkTree = do ( writepointer f k , fromdirect f k ) - stagePointerFile f =<< hashPointerFile k + stagePointerFile f Nothing =<< hashPointerFile k Database.Keys.addAssociatedFile k =<< inRepo (toTopFilePath f) return () -- cgit v1.2.3