Skip to content

Commit

Permalink
libgit-load: Don't ask to build in noninteractive session
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Apr 19, 2019
1 parent e85e02a commit 27532de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libgit.el
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ If the module is not available, then offer to build it."
(interactive)
(cond
((file-exists-p libgit--module-file) (libgit--load))
(noninteractive
(message "libgit was not loaded!"))
((y-or-n-p "libgit must be built, do so now?") (libgit--configure))
(t (error "libgit was not loaded!"))))

Expand Down

0 comments on commit 27532de

Please sign in to comment.