fetch命令优化
This commit is contained in:
parent
63b7d2f7f7
commit
4308e72aa4
2 changed files with 4 additions and 3 deletions
5
main.py
5
main.py
|
@ -24,9 +24,10 @@ def custom_event(data):
|
||||||
|
|
||||||
command_list = {
|
command_list = {
|
||||||
"lfs": "git\\bin\\git lfs install",
|
"lfs": "git\\bin\\git lfs install",
|
||||||
"ensurepip": "python\\python -m ensurepip --default-pip --no-warn-script-location",
|
"ensurepip": "python\\python -m ensurepip --default-pip",
|
||||||
"clone": "git\\bin\\git clone https://git.zhaozuohong.vip/mower-ng/mower-ng.git --branch slow",
|
"clone": "git\\bin\\git clone https://git.zhaozuohong.vip/mower-ng/mower-ng.git --branch slow",
|
||||||
"fetch": "..\\git\\bin\\git fetch",
|
"fetch_fast": "..\\git\\bin\\git fetch origin/fast",
|
||||||
|
"fetch_slow": "..\\git\\bin\\git fetch origin/slow",
|
||||||
"switch_fast": "..\\git\\bin\\git switch -f fast",
|
"switch_fast": "..\\git\\bin\\git switch -f fast",
|
||||||
"switch_slow": "..\\git\\bin\\git switch -f slow",
|
"switch_slow": "..\\git\\bin\\git switch -f slow",
|
||||||
"reset_fast": "..\\git\\bin\\git reset --hard origin/fast",
|
"reset_fast": "..\\git\\bin\\git reset --hard origin/fast",
|
||||||
|
|
|
@ -14,7 +14,7 @@ watch(branch, () => {
|
||||||
const steps = computed(() => [
|
const steps = computed(() => [
|
||||||
{
|
{
|
||||||
title: '更新源码',
|
title: '更新源码',
|
||||||
command: ['fetch', `switch_${branch.value}`, `reset_${branch.value}`],
|
command: [`fetch_${branch.value}`, `switch_${branch.value}`, `reset_${branch.value}`],
|
||||||
cwd: 'mower-ng'
|
cwd: 'mower-ng'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue