From 0aa8ff1119314b86159df8085de43295462d9523 Mon Sep 17 00:00:00 2001 From: Stephen Haberman Date: Sun, 22 Jun 2008 14:39:50 -0500 Subject: [PATCH] Set rebase on checkout. --- tests/t1100-client-post-commit-rebase.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/t1100-client-post-commit-rebase.sh diff --git a/tests/t1100-client-post-commit-rebase.sh b/tests/t1100-client-post-commit-rebase.sh new file mode 100644 index 0000000..af83b20 --- /dev/null +++ b/tests/t1100-client-post-commit-rebase.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +test_description='client checkout auto-set branch rebase=true' + +. ./test-lib.sh + +test_expect_success 'setup' ' + echo "setup" >file && + git add file && + git commit -m "setup" +' + +# setup the post-checkout hook +install_client_hook 'post-checkout-rebase' 'post-checkout' + +test_expect_success 'sets rebase on new topic branch' ' + ! git config --list | grep branch.master.rebase && + git checkout -b topic master && + git config --list | grep branch.topic.rebase=true +' + +test_done + -- 2.39.5