fix: allow multi-line output for show-ref #56
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
datalad/datalad-core!56
Loading…
Reference in a new issue
No description provided.
Delete branch "adina/datalad-core:minilad"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
'show-ref git-annex' can return more than a single line of output, e.g.
when a manual sync has been performed, and 'refs/heads/synced/git-annex'
is created in response in addition to 'refs/heads/git-annex'.
This fix calls show-ref with a function that does not raise
an AssertionError when receiving more than one line of output.
I ran the tests locally via hatch and they passed.
Originally this issue was found by @jsheunis when cloning this repo in a file registration action: https://hub.psychoinformatics.de/orinoco/psyinf-pool-files-public/actions/runs/2/jobs/0/attempt/1
The repository was manually synced, which created that ref originally. (Do make the workflow run, we'll likely simply remove that tag.) I've confirmed that clone succeeds for this repo when my patch is applied.
the tests fail at the setup stage because no Git identity is set. Maybe because the PR comes from a fork? ah no, the minilad PR has the same failures.
a31187381964de01730f@mih I dropped the Git configuration commit. Tests passed when they ran
Thanks! We can close this PR. I cherry-picked the main fix and the typo rectification. The remaining test failures I addressed in a different fashion, and test s now pass without having to require an externally configured Git identity.
Pull request closed