Merge "Make prepare-workspace-git behavior more consistent"
This commit is contained in:
commit
bd1d95ccdd
@ -30,15 +30,15 @@
|
|||||||
git init {{ zuul_workspace_root }}/{{ zj_project.src_dir }}
|
git init {{ zuul_workspace_root }}/{{ zj_project.src_dir }}
|
||||||
fi
|
fi
|
||||||
cd {{ zuul_workspace_root }}/{{ zj_project.src_dir }}
|
cd {{ zuul_workspace_root }}/{{ zj_project.src_dir }}
|
||||||
git config --local --bool core.bare false
|
|
||||||
git remote -v | grep origin && git remote rm origin || true
|
|
||||||
git remote add origin file:///dev/null
|
|
||||||
fi
|
fi
|
||||||
cd {{ zuul_workspace_root }}/{{ zj_project.src_dir }}
|
cd {{ zuul_workspace_root }}/{{ zj_project.src_dir }}
|
||||||
|
git config --local --bool core.bare false
|
||||||
# Allow pushing to non-bare repo
|
# Allow pushing to non-bare repo
|
||||||
git config --local receive.denyCurrentBranch ignore
|
git config --local receive.denyCurrentBranch ignore
|
||||||
# Allow deleting current branch
|
# Allow deleting current branch
|
||||||
git config --local receive.denyDeleteCurrent ignore
|
git config --local receive.denyDeleteCurrent ignore
|
||||||
|
git remote -v | grep origin && git remote rm origin || true
|
||||||
|
git remote add origin file:///dev/null
|
||||||
with_items: "{{ _zuul_projects.values() }}"
|
with_items: "{{ _zuul_projects.values() }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: zj_project
|
loop_var: zj_project
|
||||||
|
@ -30,15 +30,15 @@
|
|||||||
git init {{ zuul_workspace_root }}/{{ zj_project.src_dir }}
|
git init {{ zuul_workspace_root }}/{{ zj_project.src_dir }}
|
||||||
fi
|
fi
|
||||||
cd {{ zuul_workspace_root }}/{{ zj_project.src_dir }}
|
cd {{ zuul_workspace_root }}/{{ zj_project.src_dir }}
|
||||||
git config --local --bool core.bare false
|
|
||||||
git remote -v | grep origin && git remote rm origin || true
|
|
||||||
git remote add origin file:///dev/null
|
|
||||||
fi
|
fi
|
||||||
cd {{ zuul_workspace_root }}/{{ zj_project.src_dir }}
|
cd {{ zuul_workspace_root }}/{{ zj_project.src_dir }}
|
||||||
|
git config --local --bool core.bare false
|
||||||
# Allow pushing to non-bare repo
|
# Allow pushing to non-bare repo
|
||||||
git config --local receive.denyCurrentBranch ignore
|
git config --local receive.denyCurrentBranch ignore
|
||||||
# Allow deleting current branch
|
# Allow deleting current branch
|
||||||
git config --local receive.denyDeleteCurrent ignore
|
git config --local receive.denyDeleteCurrent ignore
|
||||||
|
git remote -v | grep origin && git remote rm origin || true
|
||||||
|
git remote add origin file:///dev/null
|
||||||
with_items: "{{ _zuul_projects.values() }}"
|
with_items: "{{ _zuul_projects.values() }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: zj_project
|
loop_var: zj_project
|
||||||
|
Loading…
Reference in New Issue
Block a user