Skip to content

Commit

Permalink
support git 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yukio-goto committed Jul 18, 2014
1 parent 9aaa20d commit 83c0c78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions egg.el
Expand Up @@ -7596,11 +7596,11 @@ egg in current buffer.\\<egg-minor-mode-map>
(defun egg-minor-mode-find-file-hook ()
(when (egg-is-in-git)
(save-match-data
(if (not (string-match "\\`git version 1.\\(7\\|8\\|9\\)."
(if (not (string-match "\\`git version \\(1.\\(7\\|8\\|9\\)\\|2.0\\)."
(shell-command-to-string
(concat egg-git-command " --version"))))
(progn
(message "can't find git version 1.7 or 1.8")
(message "can't find supported git")
(remove-hook 'find-file-hook #'egg-minor-mode-find-file-hook)
(message "disabled egg-minor-mode!"))
(or (assq 'egg-minor-mode minor-mode-alist)
Expand Down

0 comments on commit 83c0c78

Please sign in to comment.