mirror of
https://github.com/correl/melpa.git
synced 2024-11-24 19:19:52 +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)
|
(defun pb/git-repo (dir)
|
||||||
"Get the current git repo for DIR."
|
"Get the current git repo for DIR."
|
||||||
(with-temp-buffer
|
(with-temp-buffer
|
||||||
(pb/run-process dir "git" "remote" "show" "origin")
|
(pb/run-process dir "git" "remote" "show" "-n" "origin")
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
(re-search-forward "Fetch URL: \\(.*\\)")
|
(re-search-forward "Fetch URL: \\(.*\\)")
|
||||||
(match-string-no-properties 1)))
|
(match-string-no-properties 1)))
|
||||||
|
|
Loading…
Reference in a new issue