From acf867e8cd12f31dcf0f9fff92f3a3c34912b751 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Tue, 28 Oct 2008 03:39:18 -0700 Subject: Handle git-1.6 which installs example hooks with .sample as a suffix so they do not run. --- gitosis/test/test_repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitosis/test/test_repository.py b/gitosis/test/test_repository.py index 6bc9e76..0920c4a 100644 --- a/gitosis/test/test_repository.py +++ b/gitosis/test/test_repository.py @@ -70,7 +70,7 @@ def test_init_templates(): got = readFile(os.path.join(path, 'hooks', 'post-update')) eq(got, '#!/bin/sh\n# i can override standard templates\n') # standard templates are there, too - assert os.path.isfile(os.path.join(path, 'hooks', 'pre-rebase')) + assert (os.path.isfile(os.path.join(path, 'hooks', 'pre-rebase.sample')) or os.path.isfile(os.path.join(path, 'hooks', 'pre-rebase'))) def test_init_environment(): tmp = maketemp() -- cgit v1.2.3