Fix checking when content is present in a non-bare repository accessed via http.
I thought at first this was a Windows specific problem, but it's not; this affects checking any non-bare repository exported via http. Which is a potentially important use case! The actual bug was the case where Right False was returned by the first url short-curcuited later checks. But the whole method used felt like code I'd no longer write, and the use of undefined was particularly disgusting. So I rewrote it. Also added an action display. This commit was sponsored by Eric Hanchrow. Thanks!
This commit is contained in:
parent
3e422cb5fa
commit
d2f40d3d76
3 changed files with 12 additions and 10 deletions
|
@ -35,3 +35,5 @@ git-annex: drop: 1 failed
|
|||
|
||||
the given curl command fails with a 404, because the remote annex isn't using the 3-character hash directory scheme, but the 2-character one, and it seems that 'annex drop' doesn't check both schemes (unlike annex get).
|
||||
|
||||
> Ah, the http remote is a non-bare repository, that's why.
|
||||
> Ok, [[fixed|done]]! --[[Joey]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue