Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
archive: Various Fixes
lorenz wants to merge 1 commit into master · opened 1 year ago
  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. Use the full commit ID instead.
1 commit
l
archive: Various Fixes
lorenz
af334bb 1 year ago