Skip to content

gitea serv to enable partial clones with ssh #21805

@panicking

Description

@panicking

Description

Ubuntu 22.04 lts

GIT_TRACE=1 git clone --filter=tree:0 ssh://gitea@gitea:38745/common/kernel.git
15:58:08.342028 git.c:455 trace: built-in: git clone --filter=tree:0 ssh://gitea@gitea:38745/common/kernel.git
Cloning into 'kernel'...
15:58:08.348827 run-command.c:668 trace: run_command: unset GIT_DIR; GIT_PROTOCOL=version=2 ssh -o SendEnv=GIT_PROTOCOL -p 38745 gitea@gitea.amarulasolutions.com 'git-upload-pack '''/common/kernel.git''''
warning: filtering not recognized by server, ignoring

Gitea processo during clone

CGroup: /system.slice/gitea.service
         ├─4093562 /opt/gitea/gitea web
         ├─4093737 /usr/bin/git -c protocol.version=2 -c uploadpack.allowfilter=true -c uploadpack.allowAnySHA1InWant=true -c credential.helper= -c filter.lfs.required= -c filter.lfs.smudge= -c filte>
         ├─4093738 /usr/bin/git -c protocol.version=2 -c uploadpack.allowfilter=true -c uploadpack.allowAnySHA1InWant=true -c credential.helper= -c filter.lfs.required= -c filter.lfs.smudge= -c filte>
         ├─4093739 /usr/bin/git -c protocol.version=2 -c uploadpack.allowfilter=true -c uploadpack.allowAnySHA1InWant=true -c credential.helper= -c filter.lfs.required= -c filter.lfs.smudge= -c filte>
         └─4093740 /usr/bin/git -c protocol.version=2 -c uploadpack.allowfilter=true

Gitea Version

1.17.3

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

2.25.1, Wire Protocol Version 2 Enabled

Operating System

ubuntu 22.04 LTS

How are you running Gitea?

gitea is official run from systemd on kvm machine not docker

Database

PostgreSQL

Activity

zeripath

zeripath commented on Nov 13, 2022

@zeripath
Contributor

Works for me on 1.18-rc0 and dev.

zeripath

zeripath commented on Nov 13, 2022

@zeripath
Contributor

OK I've been able to replicate on 1.17.3 docker. This is odd.

added a commit that references this issue on Nov 13, 2022
0c9418e
zeripath

zeripath commented on Nov 13, 2022

@zeripath
Contributor

Aha! I've discovered the issue. The backport was broken.

added a commit that references this issue on Nov 14, 2022
65b5c8e
locked and limited conversation to collaborators on May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @KN4CK3R@zeripath@panicking

        Issue actions

          gitea serv to enable partial clones with ssh · Issue #21805 · go-gitea/gitea