Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

git push new branch with depth=1 #455

@joshbetz

Description

@joshbetz

Pushing a new branch after cloning with depth=1 doesn't seem to work. I get object not found. The problem seems to be in revlist.Object() -- at least that's where the error happens. As best I can tell, I think it's trying to verify too much of the tree. This same thing works with git:

git clone --depth 1 <repo>
git checkout -b new-branch
touch file
git add file
git commit -m "add test file"
git push

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

    Issue actions