diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2026-03-31 22:45:37 +0200 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2026-03-31 22:45:37 +0200 |
| commit | fa60080d686d8d03a0ab2b89203dc9dd9f21789c (patch) | |
| tree | f6cd46aaee8b3102b49d26d63441160300c73402 | |
| parent | 52eecabe7c996865436f7e62fac8ab71f98f8efa (diff) | |
magit-gitignore-in-subdir: Expand read directory name
| -rw-r--r-- | lisp/magit-gitignore.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/magit-gitignore.el b/lisp/magit-gitignore.el index f83ab77..44858f7 100644 --- a/lisp/magit-gitignore.el +++ b/lisp/magit-gitignore.el @@ -65,7 +65,8 @@ Prompt the user for a directory and add the rule to the tracked, they are shared with other clones of the repository. Also stage the file." :description "shared in subdirectory (path/to/.gitignore)" - (interactive (let ((dir (read-directory-name "Limit rule to files in: "))) + (interactive (let ((dir (expand-file-name + (read-directory-name "Limit rule to files in: ")))) (list (magit-gitignore-read-pattern dir) dir))) (magit--gitignore rule (expand-file-name ".gitignore" directory) t)) |
