| Server IP : 216.92.14.13 / Your IP : 216.73.217.126 Web Server : Apache System : Linux vps4089.pairvps.com 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64 User : rmlac2fmr ( 1040637) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/doc/python3-dulwich/examples/ |
Upload File : |
#!/usr/bin/python
# Read the config file for a git repository.
#
# Example usage:
# python examples/config.py
from dulwich.repo import Repo
repo = Repo(".")
config = repo.get_config()
print(config.get("core", "filemode"))
print(config.get(("remote", "origin"), "url"))