Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix bug uncovered by gitdir support

  • Loading branch information...
commit a0191be8ff4dc93ea0598bbbd97815a36fe73788 1 parent 1ce0093
@bogolisk bogolisk authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  egg.el
View
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")))
Please sign in to comment.
Something went wrong with that request. Please try again.