Skip to content

get git repository files with pygit2 #791

Open
@kubilay-eren

Description

@kubilay-eren

Hello to everyone,

I am working on a project. I need your help to develop the project. I developed a web interface and created a bare git repository using the pygit2 library. What I want to do is to be able to display the files in the bare dock using the pygit2 library in the web interface. Can you help me ?

I apologize for the bad english.

Activity

jdavid

jdavid commented on Apr 30, 2018

@jdavid
Member

bare dock ? Do you mean bare git repository?

Did you check the documentation? http://www.pygit2.org/

repo = Repository('...')
tree = repo.revparse_single('HEAD')
for entry in tree:
    print(entry.name)
kubilay-eren

kubilay-eren commented on May 2, 2018

@kubilay-eren
Author

yes git bare repository

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

        @jdavid@kubilay-eren

        Issue actions

          get git repository files with pygit2 · Issue #791 · libgit2/pygit2