GitPython
GitPython copied to clipboard
GitPython is a python library used to interact with Git repositories.
``` py # sscce.py import git git.Repo(".").tags[None] ``` ``` console $ git init Initialized empty Git repository in /tmp/tmp.Xoz9gZndOi/.git/ $ venv/bin/python sscce.py Traceback (most recent call last): File "sscce.py", line...
I have a terraform module code as below - ``` module "security_vpc_ap" { source = "git::codecommit::us-east-1://test?ref=v1.0.0" name = "test-vpc" cidr = var.test_cidr enable_dns_hostnames = true enable_dns_support = true # VPC...
### Background Calling `Git.execute`—whether directly, or indirectly by calling the dynamic attributes of a `Git` instance—and passing `kill_after_timeout` with a non-`None` value, creates a timer on a separate thread that...
I am checking out repositories into a temporary directory, doing various things with them including calling `tree()`, and then deleting the directories and the temporary directory. This works fine in...
Bumps [git/ext/gitdb](https://github.com/gitpython-developers/gitdb) from `3d3e957` to `b653923`. Commits b653923 Merge pull request #109 from Clavss/fix-issue-101 24ecf58 fix #101 ec58b7e Merge pull request #104 from EliahKagan/cadence 3753f72 Merge pull request #103 from...
In my use case, I wish to utilize the `Repo` class function `ignored()` to filter out a potentially larger list of files. The issue is that somethings this list of...
When calling `Git.execute`, including indirectly through the dynamic methods of a `Git` object, passing a non-`None` value of `output_stream` suppresses the effect of `kill_after_timeout`. [The `threading.Timer` object is created](https://github.com/gitpython-developers/GitPython/blob/a58a6be043f62e6552ef1638ec497f3b805c5480/git/cmd.py#L1040-L1042) with...
Steps to reproduce: ``` $ mkdir foo $ cd foo $ git init $ touch 'bokm'$'\345''l.alias' $ python -c 'import git; git.Repo(".").untracked_files' Traceback (most recent call last): File "", line...
This appears to work fine: ```python >>> reader = repo_instance.config_reader() >>> reader.sections() ['filter "lfs"', 'core', 'user'] ``` However, these do not: ```python >>> reader.items('user') NoSectionError: "No section: 'user'" >>> reader.items_all('user')...
Hello! I'm trying to use a repository that has been initialized like this: ``` mkdir git mkdir work git --git-dir=пit/test --work-tree=work/test init ``` But it doesn't work. For example, when...