aboutsummaryrefslogtreecommitdiff
path: root/test/fixtures/git_config
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2020-07-13 10:08:37 +0800
committerGitHub <noreply@github.com>2020-07-13 10:08:37 +0800
commit3edd16ca6e217ee35353564cad3aa2920bc0c2e2 (patch)
tree0f5cd65c1db04255862b8c19f4bf73cab435c4f0 /test/fixtures/git_config
parent9cb7ae8d9721e1269f5bacd6dbc33ecdec4659c0 (diff)
parente0b10d965d6377c409ceb40eb47379d79c3fef9f (diff)
downloadGitPython-3edd16ca6e217ee35353564cad3aa2920bc0c2e2.tar.gz
GitPython-3edd16ca6e217ee35353564cad3aa2920bc0c2e2.zip
Merge pull request #1031 from priv-kweihmann/move-test-2nd
[RFC/WIP] move tests and avoid packaging them
Diffstat (limited to 'test/fixtures/git_config')
-rw-r--r--test/fixtures/git_config46
1 files changed, 46 insertions, 0 deletions
diff --git a/test/fixtures/git_config b/test/fixtures/git_config
new file mode 100644
index 00000000..b8c178e3
--- /dev/null
+++ b/test/fixtures/git_config
@@ -0,0 +1,46 @@
+[core]
+ repositoryformatversion = 0
+ filemode = true
+ bare = false
+ logallrefupdates = true
+[remote "origin"]
+ fetch = +refs/heads/*:refs/remotes/origin/*
+ url = git://gitorious.org/~byron/git-python/byrons-clone.git
+ pushurl = git@gitorious.org:~byron/git-python/byrons-clone.git
+# a tab indented section header
+ [branch "master"]
+ remote = origin
+ merge = refs/heads/master
+# an space indented section header
+ [remote "mainline"]
+ # space indented comment
+ url = git://gitorious.org/git-python/mainline.git
+ fetch = +refs/heads/*:refs/remotes/mainline/*
+
+[remote "MartinMarcher"]
+ # tab indented comment
+ url = git://gitorious.org/~martin.marcher/git-python/serverhorror.git
+ fetch = +refs/heads/*:refs/remotes/MartinMarcher/*
+ # can handle comments - the section name is supposed to be stripped
+# causes stock git-config puke
+[ gui ]
+ geometry = 1316x820+219+243 207 192
+[branch "mainline_performance"]
+ remote = mainline
+ merge = refs/heads/master
+# section with value defined before include to be overriden
+[sec]
+ var0 = value0_main
+[include]
+ path = doesntexist.cfg
+ # field should be 'path' so abspath should be ignored
+ abspath = /usr/bin/foodoesntexist.bar
+ path = /usr/bin/foodoesntexist.bar
+ # should be relative to the path of this config file
+ path = ./git_config-inc.cfg
+# and defined after include. According to the documentation
+# and behavior of git config, this should be the value since
+# inclusions should be processed immediately
+[sec]
+ var1 = value1_main
+