gitpython

Can a bare repository have an index? Is this a bug?

I'm trying to get GitPython 0.3 to commit a file to a repository. Roughly, I'm doing this as follows: data = ... istream = repo.odb.store(gitdb.IStream(git.Blob.type, len(data), StringIO(data))) entry = git.BaseIndexEntry((stat.S_IFREG | 0644, istream.binsha, 0, path)) index = git.IndexFile.from_tree(repo, repo.heads['master']) index.ad...

How to import the Python async module from a worker thread?

I'm using the GitPython package to access a Git repository from Python. This pulls in the async package. In async/__init__.py, the following happens: def _init_signals(): """Assure we shutdown our threads correctly when being interrupted""" import signal # ... signal.signal(signal.SIGINT, thread_interrupt_handler) _init...