Commit 7a1f1eb4 authored by Noam Postavsky's avatar Noam Postavsky Committed by Jonas Bernoulli

magit-run-git: Delete cache after running "init" or "clone"

parent 27209657
......@@ -292,6 +292,9 @@ Process output goes into a new section in the buffer returned by
`magit-process-buffer'."
(let ((magit--refresh-cache (list (cons 0 0))))
(magit-call-git args)
(when (member (car args) '("init" "clone"))
;; Creating a new repository invalidates the cache.
(setq magit--refresh-cache nil))
(magit-refresh)))
(defvar magit-pre-call-git-hook nil)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment