Permalink
Browse files

git-wc-root: ensure trailing /

  • Loading branch information...
nelhage committed Mar 6, 2013
1 parent c4445ba commit 271b356a424955c4131fd064eb29eaa4193aee96
Showing with 4 additions and 2 deletions.
  1. +4 −2 dot-emacs
View
@@ -453,8 +453,10 @@ unable to perform symbol completion.")
(global-set-key (kbd "C-x C-f") 'my-find-file)
(defun my-git-wc-root ()
- (expand-file-name
- (chomp (shell-command-to-string "git rev-parse --show-cdup"))))
+ (concat
+ (expand-file-name
+ (chomp (shell-command-to-string "git rev-parse --show-cdup")))
+ "/"))
(defun git-grep ()
(interactive)

0 comments on commit 271b356

Please sign in to comment.