configs/git: fix pr fetch alias
This commit is contained in:
parent
6cb1b4355b
commit
c3fcf1ef8f
@ -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"; }; }
|
||||
|
Loading…
Reference in New Issue
Block a user