diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2025-02-07 20:22:37 +0200 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2025-02-10 10:40:16 +0200 |
commit | 0639cf5212c4214808d98412cfbb8cd9c5091c7c (patch) | |
tree | d3157d95e7572bb23d04c8e7d2b26ac42549387b /tests/release.testscript | |
parent | e1e2a49cb81479b319e49cb804c4ddfb11383bf7 (diff) |
Diffstat (limited to 'tests/release.testscript')
-rw-r--r-- | tests/release.testscript | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/tests/release.testscript b/tests/release.testscript index 3b9731b..e19ed20 100644 --- a/tests/release.testscript +++ b/tests/release.testscript @@ -24,16 +24,26 @@ clone_root_rep = [cmdline] cp --no-cleanup -pr $~/prj.git ./ &prj.git/*** # Prepare the local repository. # # Set the origin repository location as a relative path, so we can copy the -# local/remote repository pair into the testscript scopes. +# local/remote repository pair into the testscript scopes. Also disable hooks, +# which can potentially be broken, not to interfere with the git commands +# (commit, etc) which bdep-release calls internally. +# +# Note that it would be cleaner to add support for the --git-option option, so +# that we wouldn't need to override the hooks and, for example, just pass +# through the --no-verify option to git-commit. However, since we normally run +# multiple different git commands during bdep run, we would also need to +# support the qualified option values (see bpkg's --openssl-option for an +# example). Feels a bit hairy for now, so maybe later. # gp = [cmdline] $g -C prj log = [cmdline] $gp log '--pretty=format:"%d %s"' +$gp config user.name 'Test Script' +$gp config user.email 'testscript@example.com' ++$gp config core.hooksPath '' +$gp remote add origin ../prj.git +$gp add '*' -+$gp commit -m 'Create' --no-verify ++$gp commit -m 'Create' +$gp push --set-upstream origin master clone_prj = [cmdline] cp --no-cleanup -pr ../prj ./ &prj/*** @@ -1115,6 +1125,7 @@ new += --vcs git,branch=master 2>- +$gp config user.name 'Test Script' +$gp config user.email 'testscript@example.com' + +$gp config core.hooksPath '' +$gp remote add origin ../prj.git +$gp add '*' +$gp commit -m 'Create' |