Commit 82e24c3
committed
apply: strip ./ prefix from --directory argument
When passing a relative path like --directory=./some/sub, the leading
"./" caused apply to prepend it literally to patch filenames, resulting
in an error (invalid path).
Since using "./" is almost memory muscle for many, strip the "./"
prefix so it behaves the same as --directory=some/sub.
Signed-off-by: Joaquim Rocha <joaquim@amutable.com>1 parent 6fcee47 commit 82e24c3
2 files changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5001 | 5001 | | |
5002 | 5002 | | |
5003 | 5003 | | |
| 5004 | + | |
| 5005 | + | |
| 5006 | + | |
| 5007 | + | |
5004 | 5008 | | |
5005 | 5009 | | |
5006 | 5010 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
46 | 55 | | |
47 | 56 | | |
48 | 57 | | |
| |||
0 commit comments