From d86ed7e2c0be09b90978ee456e9cc8d9a53fac49 Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Fri, 20 Apr 2012 16:53:52 +0100 Subject: [PATCH] Don't require network connection when looking up URL for current git remote --- package-build.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package-build.el b/package-build.el index a4910413..aabd7548 100644 --- a/package-build.el +++ b/package-build.el @@ -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)))