chiark / gitweb /
test suite: t-tagupl-setting: Provide a "salsa" remote
[dgit.git] / tests / lib
index f6b653fa6578eab6948f5a972ef01a5ecc184c9e..29b68e73b99787d57ace56a77155f51cfb751038 100644 (file)
--- a/tests/lib
+++ b/tests/lib
@@ -1202,6 +1202,13 @@ t-tagupl-settings () {
        export DGIT_DRS_SENDMAIL=$troot/tstunt/sendmail
        export DGIT_DRS_DGIT=$troot/tstunt/dgit
        t-chain-test-somehow
+
+       mkdir ../pretend-salsa
+       (set -e; cd ../pretend-salsa; git init --bare)
+       git remote add salsa $tmp/pretend-salsa
+       # git branch --set-upstream-to complains, so
+       git config branch.master.remote salsa
+       git config branch.master.merge refs/heads/master
 }
 
 t-tagupl-run-drs () {