fix hardcoded origin name in checkAdjustedClone
authorJoey Hess <joeyh@joeyh.name>
Wed, 14 Apr 2021 22:53:27 +0000 (18:53 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 14 Apr 2021 22:53:27 +0000 (18:53 -0400)
commite1a9b79fa6df2412d45bc7c467f794b8d86f59a3
tree13d1e671aa3952eeadf8aaf1597c85e00ca7c5a4
parent4543774412d12e3f7b83d334745f16817ca67fe6
fix hardcoded origin name in checkAdjustedClone

init: Fix a crash when the repo's was cloned from a repo that had an
adjusted branch checked out, and the origin remote is not named "origin".

The only other hardcoding of the name of origin is in:

- Upgrade.V2, which can be ignored probably
- Annex.Branch, which doesn't fail if it has some other name, but just
  doesn't set up the git-annex branch with quite as linear a history in
  that case.
Annex/AdjustedBranch.hs
CHANGELOG
doc/bugs/crippledfs__58___annex-init_crash_when_remote_name_is.mdwn