summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/init-git.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/init-git.el b/lisp/init-git.el
index 0e18040..da87fa0 100644
--- a/lisp/init-git.el
+++ b/lisp/init-git.el
@@ -11,7 +11,7 @@
;;; Magit
(add-to-list 'load-path "~/src/emacs/magit/")
-(require 'magit-autoloads)
+(require 'magit)
(add-to-list 'load-path "~/src/emacs/orgit/")
(require 'orgit)
@@ -212,7 +212,7 @@ and 'squash!' titles."
(interactive
(let ((rev (magit-read-branch-or-commit "Revision")))
(list rev (magit-read-file-from-rev rev "File"))))
- (let ((default-directory (magit-get-top-dir)))
+ (magit-with-toplevel
(magit-run-git "checkout" rev "--" file)))
(defun km/magit-pin-file (&optional other-rev)