Browse files

fix bug uncovered by gitdir support

  • Loading branch information...
bogolisk committed Aug 25, 2012
1 parent 1ce0093 commit a0191be8ff4dc93ea0598bbbd97815a36fe73788
Showing with 1 addition and 2 deletions.
  1. +1 −2 egg.el
3 egg.el
@@ -779,8 +779,7 @@ END-RE is the regexp to match the end of a record."
(defun egg-read-git-dir ()
"call GIT to read the git directory of default-directory."
- (let* ((dotgit-parent (and (buffer-file-name)
- (locate-dominating-file (buffer-file-name) ".git")))
+ (let* ((dotgit-parent (locate-dominating-file default-directory ".git"))
(dotgit (and dotgit-parent (concat dotgit-parent "/.git")))
(dir (or (and dotgit (file-directory-p dotgit) dotgit)
(egg-git-to-string "rev-parse" "--git-dir")))

0 comments on commit a0191be

Please sign in to comment.