diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2020-01-09 20:25:49 -0800 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2020-01-09 20:25:49 -0800 |
commit | d7734036df555a17e19e9385004afb320edc06ee (patch) | |
tree | bf2f7eb4d2d5d6f42926b58d3b1be30278dd675a | |
parent | local/update-06-copyright: make GCO customizable by branch, default is all refs (diff) | |
download | githooks-branch-selection.tar.gz githooks-branch-selection.tar.bz2 githooks-branch-selection.zip |
local/tests/update-06-copyright.sh: add tests for explicitly permitted non-GCO branchesbranch-selection
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-x | local/tests/update-06-copyright.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/local/tests/update-06-copyright.sh b/local/tests/update-06-copyright.sh index 83b56c1..aeca01e 100755 --- a/local/tests/update-06-copyright.sh +++ b/local/tests/update-06-copyright.sh @@ -361,6 +361,12 @@ git checkout -q -b test-branch git commit --allow-empty -m "Commit without sign-off" -q test_branch_failure test-branch "${FAIL_NO_SIGNOFF}" +tbegin "Forked branch with new non-signed commit - explicitly configured to allow" +git config --add gentoo.gco-branches master +git checkout -q -b test-branch +git commit --allow-empty -m "Commit without sign-off" -q +test_branch_success test-branch + tbegin "Copy of master branch" git checkout -q -b test-branch test_branch_success test-branch @@ -377,6 +383,12 @@ git checkout --orphan test-branch -q git commit --allow-empty -m "Commit without sign-off" -q test_branch_failure test-branch "${FAIL_NO_SIGNOFF}" +tbegin "New independent branch without sign-off - explicitly configured to allow" +git config --add gentoo.gco-branches master +git checkout --orphan test-branch -q +git commit --allow-empty -m "Commit without sign-off" -q +test_branch_success test-branch + tbegin "Branch removal" test_branch_removal |