D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
blackhat.pw
:
/
kunden
/
kunden
/
proc
/
thread-self
/
root
/
usr
/
share
/
doc
/
python3-dulwich
/
examples
/
Filename :
config.py
back
Copy
#!/usr/bin/python # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # 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"))