]> dgit.raspbian.org Git - git-annex.git/commit
use programPath consistently, not readProgramFile
authorJoey Hess <joeyh@joeyh.name>
Mon, 30 Mar 2020 20:03:44 +0000 (16:03 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 30 Mar 2020 20:06:27 +0000 (16:06 -0400)
commit87d5583a91adfeea93addc90a894131fb6f8347b
tree09ddfe8e28dfdb1cb48031748dab6919384dff00
parentf83ead0240edd7b2dfeb3d535a21204a1f846756
use programPath consistently, not readProgramFile

Improve git-annex's ability to find the path to its program, especially
when it needs to run itself in another repo to upgrade it.

Some parts of the code used readProgramFile, probably because I forgot that
programPath exists.

I noticed this when a git-annex auto-upgrade failed because it was running
git-annex upgrade --autoonly, but the code to run git-annex used
readProgramFile, which happened to point to an older build of git-annex.
Annex/Multicast.hs
Annex/Path.hs
Assistant/WebApp/Configurators/Pairing.hs
CHANGELOG
Command/EnableTor.hs
Command/Sync.hs
Config/Files.hs
Upgrade.hs