Skip to content

Clone from URL (Repo is empty), but the property bare return false. #1084

Description

@dota17

Example, I just clone from URL : https://github.com/apache/incubator-argus.
It is an empty repo. But when I call git.Repo.clone_from, the property bare return False.

Maybe it is a BUG.

Activity

  1. Byron commented on Nov 16, 2020

    @Byron
    Member

    I believe the issue here may be a misunderstanding of what a bare repository is, as any repository can be a bare clone if it was cloned with bare=true or --bare respectively.
    The bare flag has nothing to do with the repository being empty.

  2. dota17 commented on Nov 16, 2020

    @dota17
    Author

    How we can use gitpython to check an empty repo?

  3. Byron commented on Nov 16, 2020

    @Byron
    Member

    You could indeed clone a bare repository and then have a look at the tree at the branch of interest - it represents the top-level directory.

  4. reopened this on Feb 26, 2021
  5. locked and limited conversation to collaborators on Feb 26, 2021
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

      Issue actions