From c3fcf1ef8feae921f370e0c8c140dfbb0761f0b6 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Thu, 11 Apr 2024 10:05:37 -0600 Subject: [PATCH] configs/git: fix pr fetch alias --- configs/git.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/configs/git.nix b/configs/git.nix index b6f0713..e35fb27 100644 --- a/configs/git.nix +++ b/configs/git.nix @@ -29,9 +29,8 @@ in alias = { log = "log --color=never"; diff = "diff --color=always"; - pr = ''"!f() { git fetch-pr upstream $1; git checkout pr/$1; }; f"''; - fetch-pr = '' - "!f() { git fetch $1 refs/pull/$2/head:refs/remotes/pr/$2; }; f"''; + pr = ''!f() { git fetch-pr upstream $1; git checkout pr/$1; }; f''; + fetch-pr = ''!f() { git fetch $1 refs/pull/$2/head:refs/remotes/pr/$2; }; f''; }; } { push = { default = "current"; }; }