Commit 7c9e7a7
committed
Fix getting config from git config
Currently the CLI will store to the Config object
values from the argument parsing regardless of
whether they are None or not.
But if config.xxx is created, even with a None value
the __getattr__ will never get called and thus will
never lookup the git config value.
The fix is to only store non-None values from the
argument parsing to the Config object.1 parent 063f130 commit 7c9e7a7
1 file changed
Lines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
106 | 112 | | |
107 | 113 | | |
108 | 114 | | |
| |||
0 commit comments