From 745b4ad660f8050045b521c4e15b7d3ac0b3d70e Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Tue, 6 Oct 2015 15:23:19 -0700 Subject: Fix gitc-init behavior With gitc-init, a gitc client may be specified using '-c'. If we're not currently in that client, we need to change directories so that we don't affect the local checkout, and to ensure that repo is checked out in the new client. This also makes '-c' optional if already in a gitc client, to match the rest of the init options. Change-Id: Ib514ad9fd101698060ae89bb035499800897e9bd --- tests/fixtures/gitc_config | 1 + 1 file changed, 1 insertion(+) create mode 100644 tests/fixtures/gitc_config (limited to 'tests/fixtures') diff --git a/tests/fixtures/gitc_config b/tests/fixtures/gitc_config new file mode 100644 index 00000000..a7f3d1c9 --- /dev/null +++ b/tests/fixtures/gitc_config @@ -0,0 +1 @@ +gitc_dir=/test/usr/local/google/gitc -- cgit v1.2.3-54-g00ecf