diff options
| author | Kyle Meyer <kyle@kyleam.com> | 2019-11-02 16:11:41 -0400 |
|---|---|---|
| committer | Kyle Meyer <kyle@kyleam.com> | 2019-11-02 16:11:41 -0400 |
| commit | 8c4e8ed74638a3ad112a0f0cd4a9be3b48dcaf08 (patch) | |
| tree | 70b6ad5fdea44bda6b3ad42de190d426cf1aec66 /lisp | |
| parent | 7118a9af4f002d6cdc8762b16c45e1ba307dcc8a (diff) | |
magit-gitignore-in-subdir: Fix 'git add' target
Stage the modified subdirectory .gitignore, not the top-level
.gitignore.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/magit-gitignore.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/magit-gitignore.el b/lisp/magit-gitignore.el index d54d56b..21c0239 100644 --- a/lisp/magit-gitignore.el +++ b/lisp/magit-gitignore.el @@ -81,7 +81,7 @@ Also stage the file." (magit-with-toplevel (let ((file (expand-file-name ".gitignore" directory))) (magit--gitignore rule file) - (magit-run-git "add" ".gitignore")))) + (magit-run-git "add" file)))) ;;;###autoload (defun magit-gitignore-in-gitdir (rule) |
