mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Also disallow pushing to/from upstream branch when branch names do not match
This commit is contained in:
@@ -44,8 +44,9 @@ do
|
||||
range="$remote_sha..$local_sha"
|
||||
fi
|
||||
|
||||
if ref_is_upstream_branch "$local_ref" == 0 ||
|
||||
ref_is_upstream_branch "$remote_ref" == 0
|
||||
if (ref_is_upstream_branch "$local_ref" == 0 ||
|
||||
ref_is_upstream_branch "$remote_ref" == 0) &&
|
||||
[ "$local_ref" != "$remote_ref" ]
|
||||
then
|
||||
if [ "$remote" == "origin" ]
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user