diff options
author | David Turner <dturner@twopensource.com> | 2016-07-04 02:05:23 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-07-06 11:22:40 -0700 |
commit | fcb57acdb1404f8891fd71fa18b74a34fdd6dac9 (patch) | |
tree | 67293df4b277f6188120d930778493c3089dfcfe /t/t7900-index-helper.sh | |
parent | 06e6c17a46d8866c84c62e14bb48456c6b212cff (diff) | |
download | git-dt/index-helper.tar.gz |
index-helper: indexhelper.exitAfter configdt/index-helper
Add a configuration variable, indexhelper.exitAfter, which provides a
default time to keep the index-helper alive. This is useful with
indexhelper.autorun; some users will want to keep the
automatically-run index-helper alive across their lunch break and will
thus set indexhelper.exitAfter to a high value.
Signed-off-by: David Turner <dturner@twopensource.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7900-index-helper.sh')
-rwxr-xr-x | t/t7900-index-helper.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t7900-index-helper.sh b/t/t7900-index-helper.sh index 15ba612d2e..12b5bf73b0 100755 --- a/t/t7900-index-helper.sh +++ b/t/t7900-index-helper.sh @@ -68,4 +68,12 @@ test_expect_success 'index-helper autorun works' ' test_path_is_missing .git/index-helper.sock ' +test_expect_success 'indexhelper.exitafter config works' ' + test_when_finished "git index-helper --kill" && + test_config indexhelper.exitafter 1 && + git index-helper --detach && + sleep 3 && + test_path_is_missing .git/index-helper.sock +' + test_done |