Commit 97f4d1e
committed
cmd/git(fix[GitNoteCmd]): fix hanging doctest and pass kwargs through run()
why: The doctest for GitNoteCmd.edit hung because:
1. git notes edit opens an interactive editor
2. GitNoteCmd.run() wasn't passing **kwargs to self.cmd.run()
so config={'core.editor': 'true'} was being dropped
what:
- Use config={'core.editor': 'true'} to override editor via -c flag
- Pass **kwargs through GitNoteCmd.run() to self.cmd.run()1 parent 4019a1e commit 97f4d1e
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6893 | 6893 | | |
6894 | 6894 | | |
6895 | 6895 | | |
| 6896 | + | |
6896 | 6897 | | |
6897 | 6898 | | |
6898 | 6899 | | |
| |||
7012 | 7013 | | |
7013 | 7014 | | |
7014 | 7015 | | |
| 7016 | + | |
7015 | 7017 | | |
7016 | 7018 | | |
7017 | 7019 | | |
| |||
7025 | 7027 | | |
7026 | 7028 | | |
7027 | 7029 | | |
| 7030 | + | |
| 7031 | + | |
7028 | 7032 | | |
7029 | 7033 | | |
7030 | 7034 | | |
7031 | | - | |
| 7035 | + | |
7032 | 7036 | | |
7033 | 7037 | | |
7034 | 7038 | | |
| |||
7044 | 7048 | | |
7045 | 7049 | | |
7046 | 7050 | | |
| 7051 | + | |
7047 | 7052 | | |
7048 | 7053 | | |
7049 | 7054 | | |
| |||
0 commit comments