Files
radicle-explorer/radicle-httpd
lorenz af334bb0e4 archive: Various Fixes
1. When `git archive` errors, do not require an exit code, but just use
    the `ExitStatus` we already have. This requires less unwrapping.
    Also, the previous default of 0 was misleading, since 0 is returned
    upon successful termination.
 2. Use "refname" instead of "refspec" as these are different concepts.
    Refer to <https://git-scm.com/docs/git-check-ref-format> and in
    particular
    <https://git-scm.com/docs/git-check-ref-format#Documentation/git-check-ref-format.txt---refspec-pattern>.
 3. Only allow appending ".tar.gz" to commit IDs, not to refnames,
    because refnames may contain the suffix ".tar.gz". It might look
    weird, but it is not forbidden to do `git branch foo.tar.gz`.
 4. `char::is_ascii` does not help sanitize refnames to file names. In
    particular we have `'/'.is_ascii() == true`. Replace forward slashes
    with two underscores.
2025-04-23 16:29:58 +02:00
..
2025-03-19 11:12:04 -06:00
2025-04-23 16:29:58 +02:00
2025-02-04 11:32:28 -06:00
2025-02-04 11:32:28 -06:00
2025-03-19 11:12:04 -06:00