Skip to content

Commit

Permalink
[Fix #1050] Don't throw an error on non-git projects when trying to f…
Browse files Browse the repository at this point in the history
…igure

out the ignored files
  • Loading branch information
bbatsov committed Sep 19, 2016
1 parent 6a00b68 commit ca889cb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions projectile.el
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,8 @@ Files are returned as relative paths to the project root."
(let ((vcs (projectile-project-vcs)))
(cond
((eq vcs 'git) projectile-git-ignored-command)
(t (error "VCS command for ignored files not implemented yet")))))
;; TODO: Add support for other VCS
(t nil))))

(defun projectile-flatten (lst)
"Take a nested list LST and return its contents as a single, flat list."
Expand Down Expand Up @@ -1071,7 +1072,8 @@ they are excluded from the results of this function."
(defun projectile-get-repo-ignored-files ()
"Get a list of the files ignored in the project."
(let ((cmd (projectile-get-ext-ignored-command)))
(projectile-files-via-ext-command cmd)))
(when cmd
(projectile-files-via-ext-command cmd))))

(defun projectile-files-via-ext-command (command)
"Get a list of relative file names in the project root by executing COMMAND."
Expand Down

0 comments on commit ca889cb

Please sign in to comment.