mirror of
https://github.com/correl/melpa.git
synced 2024-11-24 11:09:51 +00:00
Don't require network connection when looking up URL for current git remote
This commit is contained in:
parent
6e25a6da87
commit
d86ed7e2c0
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ seconds; the server cuts off after 10 requests in 20 seconds.")
|
|||
(defun pb/git-repo (dir)
|
||||
"Get the current git repo for DIR."
|
||||
(with-temp-buffer
|
||||
(pb/run-process dir "git" "remote" "show" "origin")
|
||||
(pb/run-process dir "git" "remote" "show" "-n" "origin")
|
||||
(goto-char (point-min))
|
||||
(re-search-forward "Fetch URL: \\(.*\\)")
|
||||
(match-string-no-properties 1)))
|
||||
|
|
Loading…
Reference in a new issue