From 8e74101f3e733e3417c45ef0a0bc2b5538f576d1 Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Tue, 23 Nov 2021 11:21:45 +0000 Subject: [PATCH] git: Fetch GitHub pull request refs by default I can't find a way to make this a wildcard that applies to all remotes, so this adds the two most common remotes that I'm likely to use. Signed-off-by: Joe Groocock --- git/config | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/git/config b/git/config index 9cffbd0..eca0ba8 100644 --- a/git/config +++ b/git/config @@ -23,6 +23,10 @@ ff = only [rebase] autoStash = true +[remote "origin"] + fetch = +refs/pull/*/head:refs/remotes/origin/pr/* +[remote "upstream"] + fetch = +refs/pull/*/head:refs/remotes/upstream/pr/* [log] date = iso8601-local [format]