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.
This commit is contained in:
Joey Hess 2021-04-14 18:53:27 -04:00
parent 4543774412
commit e1a9b79fa6
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 8 additions and 4 deletions

View file

@ -51,3 +51,5 @@ overriding `annex.crippledfilesystem`. Entering an adjusted branch in
`a` is sufficient to trigger this.
[[!tag projects/datalad]]
> [[fixed|done]] --[[Joey]]