Commit 709140b
t0401: test post-command for alias, version, typo
When the top-level Git process is an alias, it doesn't load much config
and thus the postCommand.strategy config setting is not loaded properly.
This leads to the post-command hook being run more frequently than we want,
including an alias for 'git add' running the hook even when the worktree
did not change.
Similar state is not loaded by 'git version' or 'git typo'.
Signed-off-by: Derrick Stolee <stolee@gmail.com>1 parent 6d67873 commit 709140b
1 file changed
Lines changed: 32 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
81 | 94 | | |
82 | 95 | | |
| 96 | + | |
| 97 | + | |
83 | 98 | | |
84 | | - | |
| 99 | + | |
85 | 100 | | |
86 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
87 | 117 | | |
88 | 118 | | |
89 | 119 | | |
0 commit comments