FS#72398 - [AUR] You appear to have cloned an empty repository
Attached to Project:
AUR web interface
Opened by Andre "Osku" Schmidt (oskude) - Monday, 11 October 2021, 21:06 GMT
Last edited by Kevin Morris (kevr) - Thursday, 10 February 2022, 01:14 GMT
Opened by Andre "Osku" Schmidt (oskude) - Monday, 11 October 2021, 21:06 GMT
Last edited by Kevin Morris (kevr) - Thursday, 10 February 2022, 01:14 GMT
|
Details
is it a bug or feature that git cloning a non existing repo
from aur creates a directory?
for example: ``` $ git clone https://aur.archlinux.org/doesnotexist.git bar Cloning into 'bar'... warning: You appear to have cloned an empty repository. $ file bar bar: directory ``` cause this does not create a directory: ``` $ git clone https://example.org/doesnotexist.git foo Cloning into 'foo'... fatal: repository 'https://example.org/doesnotexist.git/' not found $ file foo foo: cannot open `foo' (No such file or directory) ``` yet both return the same http code 404: ``` $ curl -sIX GET https://example.org/doesnotexist.git | head -n 1 HTTP/2 404 $ curl -sIX GET https://aur.archlinux.org/doesnotexist.git | head -n 1 HTTP/2 404 ``` ps. yes, i'm also building an aur tool ;P and was just wondering if all need to implement 404 check in their tool. pps. if it is a feature, can/should i add a mention about it in https://wiki.archlinux.org/title/Arch_User_Repository#FAQ ? |
This task depends upon
Closed by Kevin Morris (kevr)
Thursday, 10 February 2022, 01:14 GMT
Reason for closing: Not a bug
Additional comments about closing: This is not a bug.
Thursday, 10 February 2022, 01:14 GMT
Reason for closing: Not a bug
Additional comments about closing: This is not a bug.
does that mean we can also push over https?
cause i understand the use-case for cloning a non existing repo for pushing later.
but if we cannot push over https, i wonder if it's possible/worth to make it so that cloning over https won't create a directory? (you know, to save a call to aur and/or code for checking 404)
otherwise feel free to close this ticket, and sorry for the noise.