Fix handling of commands with arguments in paramiko SSH client.
[jelmer/dulwich.git] / examples / config.py
1 #!/usr/bin/python
2 # Read the config file for a git repository.
3 #
4 # Example usage:
5 #  python examples/config.py
6
7 from dulwich.repo import Repo
8
9 repo = Repo(".")
10 config = repo.get_config()
11
12 print(config.get("core", "filemode"))
13 print(config.get(("remote", "origin"), "url"))