Commit 96a1052
authored
fix: editor var expansion (#603)
This handles cases where the git editor is set to `$EDITOR`. The steps for reproducing are as follows.
1. Set the EDITOR env var
2. Update your .gitconfig to include editor=$EDITOR
3. Run `av pr --edit`
According to `man 1 git-var`, `GIT_EDITOR` is "meant to be interpreted by the shell when it is used". Hence, this variable needs to be interpreted.
Credit to @tgandrews for spotting the issue1 parent ea50a0b commit 96a1052
1 file changed
+5
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
| 72 | + | |
| 73 | + | |
74 | 74 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
82 | 78 | | |
83 | 79 | | |
84 | 80 | | |
| |||
0 commit comments