commits
- fix kotlinscript detection (there is an open patch upstream for this)
- fix gleam highlighting
the current PR is already in the list of PRs to be merged, include only
PRs that are strictly below it for merge.
- move endpoint on knot to /{did}/{name}/languages
- remove buggy percentage calculation
- fix endpoint to work on empty repos
- allowing calling endpoint with empty ref
Also skips getForkInfo for non owners/collaborators.
Prevents a nil dereference in the repo index route if the user is not
logged in, and hides the fork-sync button.
Fixes: <https://tangled.sh/@tangled.sh/core/issues/108>
Fixes: <https://tangled.sh/@tangled.sh/core/issues/107>
Let's stick to just the file extension alone since we sometimes seem to get
text/plain as the MIME type.
on mobile, this indicator would shrink out of existence
Adds 'x-tangled-repo-owner-handle' header when proxying git requests to
the knot. This allows knotserver to attempt to suggest the correct
git+ssh URL when rejecting a HTTP git push.
* Checks service name query parameter in info/refs handler; rejects any
service request that doesn't match 'git-upload-pack'.
* Produces 'text/plain' error responses so the git client will display
them.
* Adds a specific reject message for 'git-receive-pack'. This will
produce a less cryptic error in the terminal when trying to push over
http.
Sorts branches by update time (and in same-repo comparisons we drop the
default branch) and preselects the most recent branch.
empty repo template now shows a list of other branches if available
- setting default-branch now works on repos that have empty default
branches
- RepoIndex now returns branch-list if available on empty repos
- fix kotlinscript detection (there is an open patch upstream for this)
- fix gleam highlighting
* Checks service name query parameter in info/refs handler; rejects any
service request that doesn't match 'git-upload-pack'.
* Produces 'text/plain' error responses so the git client will display
them.
* Adds a specific reject message for 'git-receive-pack'. This will
produce a less cryptic error in the terminal when trying to push over
http.