mirror of
https://github.com/AGWA/git-crypt.git
synced 2026-01-04 17:18:01 -08:00
There's a tradeoff. When the path is hardcoded, it's guaranteed that git-crypt will be found no matter where you run git or what your $PATH is. On the other hand, hardcoding means that things break if git-crypt changes location, which could easily happen if you copy a repository to a different system (see https://github.com/AGWA/git-crypt/issues/71 for example). In hindsight, I think this was a bad tradeoff. Now, if git-crypt is invoked as a bare filename (no slashes), the bare filename is placed in .git/config under the assumption that it can be found via $PATH (this assumption will be true as long as git-crypt wasn't resolved via a relative path in $PATH). This logic was already being used on non-Linux OSes and it seemed to work fine.
5.7 KiB
5.7 KiB