Skip to content

shallow clone breaks git rebase, gitlens, timeline and other features #6796

Closed
@akosyakov

Description

@akosyakov

Bug description

At the same time Codespaces doing shallow clone as well, but don't have such issues. Some should investigate why it does not work nicely in Gitpod.

Creation log from a Codespace:

2021-11-19T08:00:15: $ git -C "/var/lib/docker/codespacemount/workspace" clone --branch ft/publish-ms-version --depth 1 ******/****** "/var/lib/docker/codespacemount/workspace/publish-extensions"
2021-11-19T08:00:16: Cloning into '/var/lib/docker/codespacemount/workspace/publish-extensions'...
2021-11-19T08:00:16: git process exited with exit code 0
2021-11-19T08:00:17: $ git -C "/var/lib/docker/codespacemount/workspace/publish-extensions" config --local remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
2021-11-19T08:00:17: git process exited with exit code 0
2021-11-19T08:00:17: $ git -C "/var/lib/docker/codespacemount/workspace/publish-extensions" config --local remote..github-pr-remote true
2021-11-19T08:00:17: git process exited with exit code 0
2021-11-19T08:00:17: $ git -C "/var/lib/docker/codespacemount/workspace/publish-extensions" config --local branch..github-pr-owner-number open-vsx#publish-extensions#494
2021-11-19T08:00:17: git process exited with exit code 0

I noticed that Codespaces using git 2.33.0, but Gitpod is using 2.30.1 Maybe new git has some special handling.

Steps to reproduce

Start a workspace on big repo and try to do rebase (PR with more than 20 commits will fail to rebase properly), use blame or see timeline.

Workspace affected

No response

Expected behavior

No response

Example repository

No response

Anything else?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions