AUR web interface

**This is the bug tracker for the AUR web interface.**

Use this tracker to report bugs or make feature requests regarding the behaviour or implementation of the AUR software.
Please read the Reporting Bug Guidelines before filing a new task.
http://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

- Please report bugs related to Arch Linux official packages here: http://bugs.archlinux.org/index.php?project=1
- Please report bugs for [community] packages here: http://bugs.archlinux.org/index.php?project=5
- For any packages in the AUR contact the maintainer or leave a comment on the package's detail page.

Source Code:
https://projects.archlinux.org/aurweb.git/
Tasklist

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 Jelle van der Waa (jelly) - Saturday, 16 October 2021, 14:09 GMT
Task Type Bug Report
Category Web Sites
Status Unconfirmed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

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

Comment by David Thurstenson (thurstylark) - Monday, 11 October 2021, 21:09 GMT Comment by Andre "Osku" Schmidt (oskude) - Monday, 11 October 2021, 21:25 GMT
ah, forgot to look there, sorry.

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.
Comment by David Thurstenson (thurstylark) - Monday, 11 October 2021, 21:29 GMT

Loading...