From 1a9024e799fea53ea66120e54e66b92caf012dee Mon Sep 17 00:00:00 2001 From: David Wobrock Date: Sun, 20 Jan 2019 11:44:54 +0100 Subject: [PATCH] add test for git on non root location --- tests/fixtures.py | 11 +- tests/functional/test_cmd_line_call.py | 33 ++++ .../django_project/manage.py | 22 +++ .../django_project/test_app1/__init__.py | 0 .../django_project/test_app1/admin.py | 3 + .../django_project/test_app1/apps.py | 5 + .../test_app1/migrations/0001_initial.py | 23 +++ .../migrations/0002_a_null_field_2.py | 20 +++ .../migrations/0003_a_non_null_field.py | 20 +++ .../test_app1/migrations/__init__.py | 0 .../django_project/test_app1/models.py | 6 + .../django_project/test_app1/tests.py | 3 + .../django_project/test_app1/views.py | 3 + .../django_project/test_project/__init__.py | 0 .../django_project/test_project/settings.py | 122 +++++++++++++ .../django_project/test_project/urls.py | 21 +++ .../django_project/test_project/wsgi.py | 16 ++ .../git/COMMIT_EDITMSG | 1 + .../test_non_root_git_project/git/HEAD | 1 + .../test_non_root_git_project/git/config | 5 + .../test_non_root_git_project/git/description | 1 + .../git/hooks/applypatch-msg.sample | 15 ++ .../git/hooks/commit-msg.sample | 24 +++ .../git/hooks/fsmonitor-watchman.sample | 114 ++++++++++++ .../git/hooks/post-update.sample | 8 + .../git/hooks/pre-applypatch.sample | 14 ++ .../git/hooks/pre-commit.sample | 49 +++++ .../git/hooks/pre-push.sample | 53 ++++++ .../git/hooks/pre-rebase.sample | 169 ++++++++++++++++++ .../git/hooks/pre-receive.sample | 24 +++ .../git/hooks/prepare-commit-msg.sample | 42 +++++ .../git/hooks/update.sample | 128 +++++++++++++ .../test_non_root_git_project/git/index | Bin 0 -> 1797 bytes .../git/info/exclude | 6 + .../test_non_root_git_project/git/logs/HEAD | 6 + .../git/logs/refs/heads/master | 6 + .../01/40e142724fc58944797f9ddc2ebf964146339a | 2 + .../0e/52dc2380789e401cf385d3376af39f4bb6598f | Bin 0 -> 131 bytes .../15/d47f23b30965a0ef668af1e639a23634e4532a | Bin 0 -> 274 bytes .../16/8e382963b2ef0de835c22c48c2bf3a702e83a0 | Bin 0 -> 149 bytes .../1c/dc834ac63fc5edefbbdcabf264026ccc8cf4a7 | Bin 0 -> 123 bytes .../1d/c36fd270ce97d05f4fa75c3c16917951d71768 | Bin 0 -> 92 bytes .../21/a03f36ba451433c9fefe71d9fd05e80cefe458 | Bin 0 -> 122 bytes .../29/56309db5fd77d3474462f613653d73787f214f | Bin 0 -> 240 bytes .../2c/46f438a89972f9ce2d5151a825a5bfb7f7db4b | 4 + .../2c/5613c15e0a45ad460b4973dcdf942846b77b72 | Bin 0 -> 132 bytes .../2f/3fa93ad05c33e1d0ccda111d881e192bccbc87 | Bin 0 -> 225 bytes .../30/b505e031fc496c88d36be5ed7892337c640223 | 2 + .../33/90cc679ea02b9ad1a57dc6ef711255b4f4d90c | Bin 0 -> 451 bytes .../41/07cf9a6c4633c97bd7ee2a73353c88deca64a4 | Bin 0 -> 122 bytes .../43/4e403e49cc1e2037d29695e0cb6477f20acc2e | Bin 0 -> 56 bytes .../4a/d7b8980d409199892bb78d1c77164fc6446993 | Bin 0 -> 316 bytes .../4b/0dddde301971fc19f1817a22bf0948890ccacc | Bin 0 -> 123 bytes .../4c/f37def1d191c7c4b34e1053fa923e6d649525a | Bin 0 -> 123 bytes .../4d/00aeaddee6c0c490e5018fa1d40b3fb4fd55a4 | Bin 0 -> 240 bytes .../56/26f87a33217c62ed70006bda0735aaa8578ee7 | Bin 0 -> 158 bytes .../57/97dee69dcb584dede25d7c02d34caf96d70236 | Bin 0 -> 109 bytes .../59/e2ac235a403799063c7e7f2a137c462ac17ba2 | Bin 0 -> 583 bytes .../5c/f2c8f1e59f99ac2de981abf2b6adf6279ea3da | Bin 0 -> 239 bytes .../6b/f17bf7104d256ef447c26ecb37124331d29cae | Bin 0 -> 91 bytes .../73/5de5db8bc5e1ed29b3cb7ece62b5e7c8db06ee | Bin 0 -> 391 bytes .../7c/dae90d4510701438cf671bb67772202f825891 | 1 + .../7c/e503c2dd97ba78597f6ff6e4393132753573f6 | Bin 0 -> 72 bytes .../81/45e446f728f9ed6ba04294b4c880be74383949 | Bin 0 -> 1285 bytes .../82/bc1ebd64ca46c16193d8f8407127f0f3e4164c | 2 + .../84/8eee04718d10f32f59ff9ae63afd8478ef68c4 | Bin 0 -> 57 bytes .../88/c4bb3d2e2aa1968f90484f0b6cd77b7c4f7c57 | Bin 0 -> 122 bytes .../89/5be6939590f9199877bf41d9fe2ca0f5f501eb | Bin 0 -> 122 bytes .../8c/38f3f3dad51e4585f3984282c2a4bec5349c1e | Bin 0 -> 77 bytes .../8f/255685e632623f016e1ecf18a4e9d58746e1ce | Bin 0 -> 90 bytes .../8f/be1b0a394f7e215f9cf6d48e8bfdc3b00e1c80 | Bin 0 -> 276 bytes .../91/3c6cc338b8f9d2530f21dd94b939fbc42cf1c4 | Bin 0 -> 56 bytes .../91/ea44a218fbd2f408430959283f0419c921093e | Bin 0 -> 77 bytes .../98/6913f97e6222f14be4db7d10e90430cc43cc4d | Bin 0 -> 1268 bytes .../9b/353778696f76f0288affbc392eeefa4df70e90 | Bin 0 -> 331 bytes .../9b/b51574d23f6566590cf6bb9ce31868466be03f | 5 + .../9d/1dcfdaf1a6857c5f83dc27019c7600e1ffaff8 | Bin 0 -> 56 bytes .../a3/f20003e5407a44000854c41ba29c06a3bbba82 | Bin 0 -> 132 bytes .../aa/66ac1debe2ae5fd39cd8e65f6dfd9786649490 | Bin 0 -> 284 bytes .../b8/da44fc3f868ffbd94e347927f138be8b5b5b2d | Bin 0 -> 56 bytes .../bd/fc3d5864d2ad429269f80d739ef58ded2d4b35 | Bin 0 -> 195 bytes .../bf/a71e37ed417bd9acf5ef4a44975f7bfd10341a | Bin 0 -> 56 bytes .../cb/96855f9aa7aae003123eca1addad870c7b8fde | Bin 0 -> 154 bytes .../e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 | Bin 0 -> 15 bytes .../ea/9048c5860ddad87cb377574bd627fa4a7ccd4c | Bin 0 -> 56 bytes .../f1/22245e6a3ce63b99e0beeb8403031edd08ed50 | 1 + .../f1/ff8f0c6cca456e2e132263fd70ac9593ac1b53 | Bin 0 -> 241 bytes .../f6/7bb4d66d0955079a1365ba91ae91671796ce85 | Bin 0 -> 1373 bytes .../f6/a170bb234332d6ecef3b4348f2da0e758c59a7 | Bin 0 -> 149 bytes .../fb/3701d6fd9f5fa295ab981f9fac08c3156045d2 | Bin 0 -> 82 bytes .../git/refs/heads/master | 1 + 91 files changed, 991 insertions(+), 1 deletion(-) create mode 100644 tests/test_project_fixtures/test_non_root_git_project/django_project/manage.py create mode 100644 tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/__init__.py create mode 100644 tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/admin.py create mode 100644 tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/apps.py create mode 100644 tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/migrations/0001_initial.py create mode 100644 tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/migrations/0002_a_null_field_2.py create mode 100644 tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/migrations/0003_a_non_null_field.py create mode 100644 tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/migrations/__init__.py create mode 100644 tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/models.py create mode 100644 tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/tests.py create mode 100644 tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/views.py create mode 100644 tests/test_project_fixtures/test_non_root_git_project/django_project/test_project/__init__.py create mode 100644 tests/test_project_fixtures/test_non_root_git_project/django_project/test_project/settings.py create mode 100644 tests/test_project_fixtures/test_non_root_git_project/django_project/test_project/urls.py create mode 100644 tests/test_project_fixtures/test_non_root_git_project/django_project/test_project/wsgi.py create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/COMMIT_EDITMSG create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/HEAD create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/config create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/description create mode 100755 tests/test_project_fixtures/test_non_root_git_project/git/hooks/applypatch-msg.sample create mode 100755 tests/test_project_fixtures/test_non_root_git_project/git/hooks/commit-msg.sample create mode 100755 tests/test_project_fixtures/test_non_root_git_project/git/hooks/fsmonitor-watchman.sample create mode 100755 tests/test_project_fixtures/test_non_root_git_project/git/hooks/post-update.sample create mode 100755 tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-applypatch.sample create mode 100755 tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-commit.sample create mode 100755 tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-push.sample create mode 100755 tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-rebase.sample create mode 100755 tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-receive.sample create mode 100755 tests/test_project_fixtures/test_non_root_git_project/git/hooks/prepare-commit-msg.sample create mode 100755 tests/test_project_fixtures/test_non_root_git_project/git/hooks/update.sample create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/index create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/info/exclude create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/logs/HEAD create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/logs/refs/heads/master create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/01/40e142724fc58944797f9ddc2ebf964146339a create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/0e/52dc2380789e401cf385d3376af39f4bb6598f create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/15/d47f23b30965a0ef668af1e639a23634e4532a create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/16/8e382963b2ef0de835c22c48c2bf3a702e83a0 create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/1c/dc834ac63fc5edefbbdcabf264026ccc8cf4a7 create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/1d/c36fd270ce97d05f4fa75c3c16917951d71768 create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/21/a03f36ba451433c9fefe71d9fd05e80cefe458 create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/29/56309db5fd77d3474462f613653d73787f214f create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/2c/46f438a89972f9ce2d5151a825a5bfb7f7db4b create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/2c/5613c15e0a45ad460b4973dcdf942846b77b72 create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/2f/3fa93ad05c33e1d0ccda111d881e192bccbc87 create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/30/b505e031fc496c88d36be5ed7892337c640223 create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/33/90cc679ea02b9ad1a57dc6ef711255b4f4d90c create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/41/07cf9a6c4633c97bd7ee2a73353c88deca64a4 create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/43/4e403e49cc1e2037d29695e0cb6477f20acc2e create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/4a/d7b8980d409199892bb78d1c77164fc6446993 create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/4b/0dddde301971fc19f1817a22bf0948890ccacc create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/4c/f37def1d191c7c4b34e1053fa923e6d649525a create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/4d/00aeaddee6c0c490e5018fa1d40b3fb4fd55a4 create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/56/26f87a33217c62ed70006bda0735aaa8578ee7 create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/57/97dee69dcb584dede25d7c02d34caf96d70236 create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/59/e2ac235a403799063c7e7f2a137c462ac17ba2 create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/5c/f2c8f1e59f99ac2de981abf2b6adf6279ea3da create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/6b/f17bf7104d256ef447c26ecb37124331d29cae create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/73/5de5db8bc5e1ed29b3cb7ece62b5e7c8db06ee create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/7c/dae90d4510701438cf671bb67772202f825891 create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/7c/e503c2dd97ba78597f6ff6e4393132753573f6 create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/81/45e446f728f9ed6ba04294b4c880be74383949 create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/82/bc1ebd64ca46c16193d8f8407127f0f3e4164c create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/84/8eee04718d10f32f59ff9ae63afd8478ef68c4 create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/88/c4bb3d2e2aa1968f90484f0b6cd77b7c4f7c57 create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/89/5be6939590f9199877bf41d9fe2ca0f5f501eb create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/8c/38f3f3dad51e4585f3984282c2a4bec5349c1e create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/8f/255685e632623f016e1ecf18a4e9d58746e1ce create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/8f/be1b0a394f7e215f9cf6d48e8bfdc3b00e1c80 create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/91/3c6cc338b8f9d2530f21dd94b939fbc42cf1c4 create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/91/ea44a218fbd2f408430959283f0419c921093e create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/98/6913f97e6222f14be4db7d10e90430cc43cc4d create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/9b/353778696f76f0288affbc392eeefa4df70e90 create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/9b/b51574d23f6566590cf6bb9ce31868466be03f create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/9d/1dcfdaf1a6857c5f83dc27019c7600e1ffaff8 create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/a3/f20003e5407a44000854c41ba29c06a3bbba82 create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/aa/66ac1debe2ae5fd39cd8e65f6dfd9786649490 create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/b8/da44fc3f868ffbd94e347927f138be8b5b5b2d create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/bd/fc3d5864d2ad429269f80d739ef58ded2d4b35 create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/bf/a71e37ed417bd9acf5ef4a44975f7bfd10341a create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/cb/96855f9aa7aae003123eca1addad870c7b8fde create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/ea/9048c5860ddad87cb377574bd627fa4a7ccd4c create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/f1/22245e6a3ce63b99e0beeb8403031edd08ed50 create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/f1/ff8f0c6cca456e2e132263fd70ac9593ac1b53 create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/f6/7bb4d66d0955079a1365ba91ae91671796ce85 create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/f6/a170bb234332d6ecef3b4348f2da0e758c59a7 create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/objects/fb/3701d6fd9f5fa295ab981f9fac08c3156045d2 create mode 100644 tests/test_project_fixtures/test_non_root_git_project/git/refs/heads/master diff --git a/tests/fixtures.py b/tests/fixtures.py index 04a8114..81fb577 100644 --- a/tests/fixtures.py +++ b/tests/fixtures.py @@ -48,10 +48,19 @@ NOT_DJANGO_GIT_PROJECT = os.path.join( NOT_GIT_DJANGO_PROJECT = os.path.join( _FIXTURES_FOLDER, 'test_django_without_git_project/') +NON_GIT_ROOT_GIT_FOLDER = os.path.join( + _FIXTURES_FOLDER, 'test_non_root_git_project/' +) +NON_GIT_ROOT_DJANGO_PROJECT = os.path.join( + NON_GIT_ROOT_GIT_FOLDER, 'django_project/' +) + + ALL_GIT_PROJECTS = ( NOT_DJANGO_GIT_PROJECT, MULTI_COMMIT_PROJECT, - DELETED_MIGRATION_PROJECT + DELETED_MIGRATION_PROJECT, + NON_GIT_ROOT_GIT_FOLDER, ) diff --git a/tests/functional/test_cmd_line_call.py b/tests/functional/test_cmd_line_call.py index 1077375..a2861fa 100644 --- a/tests/functional/test_cmd_line_call.py +++ b/tests/functional/test_cmd_line_call.py @@ -241,3 +241,36 @@ class CallLinterFromCommandLineTest(unittest.TestCase): "(test_app3, 0001_initial)... OK", ]) ) + + def test_call_project_non_git_root(self): + # could use tag: version_ok (but doesn't work in Travis) + cmd = '{0} --no-cache {1} 2c46f438a89972f9ce2d5151a825a5bfb7f7db4b'.format( + self.linter_exec, + fixtures.NON_GIT_ROOT_DJANGO_PROJECT) + fixtures.prepare_git_project(fixtures.NON_GIT_ROOT_GIT_FOLDER) + + process = Popen( + cmd, shell=True, stdout=PIPE, stderr=PIPE) + process.wait() + self.assertEqual(process.returncode, 0) + lines = list(map(utils.clean_bytes_to_str, process.stdout.readlines())) + self.assertEqual(len(lines), 3) + self.assertTrue(lines[0].endswith('OK')) + self.assertTrue(lines[1].startswith('*** Summary')) + + def test_call_project_non_git_root_ko(self): + # could use tag: version_ko (but doesn't work in Travis) + cmd = '{0} --no-cache {1} 0140e142724fc58944797f9ddc2ebf964146339a'.format( + self.linter_exec, + fixtures.NON_GIT_ROOT_DJANGO_PROJECT) + fixtures.prepare_git_project(fixtures.NON_GIT_ROOT_GIT_FOLDER) + + process = Popen( + cmd, shell=True, stdout=PIPE, stderr=PIPE) + process.wait() + self.assertNotEqual(process.returncode, 0) + lines = list(map(utils.clean_bytes_to_str, process.stdout.readlines())) + self.assertEqual(len(lines), 5) + self.assertTrue(lines[0].endswith('ERR')) + self.assertTrue(lines[2].endswith('OK')) + self.assertTrue(lines[3].startswith('*** Summary')) diff --git a/tests/test_project_fixtures/test_non_root_git_project/django_project/manage.py b/tests/test_project_fixtures/test_non_root_git_project/django_project/manage.py new file mode 100644 index 0000000..3390cc6 --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/django_project/manage.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python +import os +import sys + +if __name__ == "__main__": + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project.settings") + try: + from django.core.management import execute_from_command_line + except ImportError: + # The above import may fail for some other reason. Ensure that the + # issue is really that Django is missing to avoid masking other + # exceptions on Python 2. + try: + import django + except ImportError: + raise ImportError( + "Couldn't import Django. Are you sure it's installed and " + "available on your PYTHONPATH environment variable? Did you " + "forget to activate a virtual environment?" + ) + raise + execute_from_command_line(sys.argv) diff --git a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/__init__.py b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/admin.py b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/apps.py b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/apps.py new file mode 100644 index 0000000..1dc36fd --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/apps.py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class TestApp1Config(AppConfig): + name = 'test_app1' diff --git a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/migrations/0001_initial.py b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/migrations/0001_initial.py new file mode 100644 index 0000000..9bb5157 --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/migrations/0001_initial.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.18 on 2019-01-20 10:31 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='A', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('null_field', models.IntegerField()), + ], + ), + ] diff --git a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/migrations/0002_a_null_field_2.py b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/migrations/0002_a_null_field_2.py new file mode 100644 index 0000000..15d47f2 --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/migrations/0002_a_null_field_2.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.18 on 2019-01-20 10:32 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('test_app1', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='a', + name='null_field_2', + field=models.IntegerField(default=1), + ), + ] diff --git a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/migrations/0003_a_non_null_field.py b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/migrations/0003_a_non_null_field.py new file mode 100644 index 0000000..8fbe1b0 --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/migrations/0003_a_non_null_field.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.18 on 2019-01-20 10:33 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('test_app1', '0002_a_null_field_2'), + ] + + operations = [ + migrations.AddField( + model_name='a', + name='non_null_field', + field=models.IntegerField(null=True), + ), + ] diff --git a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/migrations/__init__.py b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/models.py b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/models.py new file mode 100644 index 0000000..1cdc834 --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/models.py @@ -0,0 +1,6 @@ +from django.db import models + +class A(models.Model): + null_field = models.IntegerField() + null_field_2 = models.IntegerField(default=1) + non_null_field = models.IntegerField(null=True) diff --git a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/tests.py b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/views.py b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. diff --git a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_project/__init__.py b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_project/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_project/settings.py b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_project/settings.py new file mode 100644 index 0000000..986913f --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_project/settings.py @@ -0,0 +1,122 @@ +""" +Django settings for test_project project. + +Generated by 'django-admin startproject' using Django 1.11.6. + +For more information on this file, see +https://docs.djangoproject.com/en/1.11/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/1.11/ref/settings/ +""" + +import os +import sys + +# Build paths inside the project like this: os.path.join(BASE_DIR, ...) +BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) + +sys.path.insert(0, os.path.join(BASE_DIR, 'apps')) + +# Quick-start development settings - unsuitable for production +# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/ + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = 'gtb+mohs%gf0+#fr89vw7e&#edmv=q8!iv+n&j_soawk$tkj3^' + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = True + +ALLOWED_HOSTS = [] + + +# Application definition + +INSTALLED_APPS = [ + 'django.contrib.admin', + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.messages', + 'django.contrib.staticfiles', + 'test_app1', +] + +MIDDLEWARE = [ + 'django.middleware.security.SecurityMiddleware', + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.common.CommonMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware', + 'django.middleware.clickjacking.XFrameOptionsMiddleware', +] + +ROOT_URLCONF = 'test_project.urls' + +TEMPLATES = [ + { + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'DIRS': [], + 'APP_DIRS': True, + 'OPTIONS': { + 'context_processors': [ + 'django.template.context_processors.debug', + 'django.template.context_processors.request', + 'django.contrib.auth.context_processors.auth', + 'django.contrib.messages.context_processors.messages', + ], + }, + }, +] + +WSGI_APPLICATION = 'test_project.wsgi.application' + + +# Database +# https://docs.djangoproject.com/en/1.11/ref/settings/#databases + +DATABASES = { + 'default': { + 'ENGINE': 'django_fake_database_backends.backends.mysql' + } +} + + +# Password validation +# https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators + +AUTH_PASSWORD_VALIDATORS = [ + { + 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', + }, +] + + +# Internationalization +# https://docs.djangoproject.com/en/1.11/topics/i18n/ + +LANGUAGE_CODE = 'en-us' + +TIME_ZONE = 'UTC' + +USE_I18N = True + +USE_L10N = True + +USE_TZ = True + + +# Static files (CSS, JavaScript, Images) +# https://docs.djangoproject.com/en/1.11/howto/static-files/ + +STATIC_URL = '/static/' diff --git a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_project/urls.py b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_project/urls.py new file mode 100644 index 0000000..735de5d --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_project/urls.py @@ -0,0 +1,21 @@ +"""linter_test_project URL Configuration + +The `urlpatterns` list routes URLs to views. For more information please see: + https://docs.djangoproject.com/en/1.11/topics/http/urls/ +Examples: +Function views + 1. Add an import: from my_app import views + 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') +Class-based views + 1. Add an import: from other_app.views import Home + 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') +Including another URLconf + 1. Import the include() function: from django.conf.urls import url, include + 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) +""" +from django.conf.urls import url +from django.contrib import admin + +urlpatterns = [ + url(r'^admin/', admin.site.urls), +] diff --git a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_project/wsgi.py b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_project/wsgi.py new file mode 100644 index 0000000..aa66ac1 --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_project/wsgi.py @@ -0,0 +1,16 @@ +""" +WSGI config for linter_test_project project. + +It exposes the WSGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ +""" + +import os + +from django.core.wsgi import get_wsgi_application + +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project.settings") + +application = get_wsgi_application() diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/COMMIT_EDITMSG b/tests/test_project_fixtures/test_non_root_git_project/git/COMMIT_EDITMSG new file mode 100644 index 0000000..46d3912 --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/git/COMMIT_EDITMSG @@ -0,0 +1 @@ +Add ok migration diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/HEAD b/tests/test_project_fixtures/test_non_root_git_project/git/HEAD new file mode 100644 index 0000000..cb089cd --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/git/HEAD @@ -0,0 +1 @@ +ref: refs/heads/master diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/config b/tests/test_project_fixtures/test_non_root_git_project/git/config new file mode 100644 index 0000000..515f483 --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/git/config @@ -0,0 +1,5 @@ +[core] + repositoryformatversion = 0 + filemode = true + bare = false + logallrefupdates = true diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/description b/tests/test_project_fixtures/test_non_root_git_project/git/description new file mode 100644 index 0000000..498b267 --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/git/description @@ -0,0 +1 @@ +Unnamed repository; edit this file 'description' to name the repository. diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/hooks/applypatch-msg.sample b/tests/test_project_fixtures/test_non_root_git_project/git/hooks/applypatch-msg.sample new file mode 100755 index 0000000..a5d7b84 --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/git/hooks/applypatch-msg.sample @@ -0,0 +1,15 @@ +#!/bin/sh +# +# An example hook script to check the commit log message taken by +# applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. The hook is +# allowed to edit the commit message file. +# +# To enable this hook, rename this file to "applypatch-msg". + +. git-sh-setup +commitmsg="$(git rev-parse --git-path hooks/commit-msg)" +test -x "$commitmsg" && exec "$commitmsg" ${1+"$@"} +: diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/hooks/commit-msg.sample b/tests/test_project_fixtures/test_non_root_git_project/git/hooks/commit-msg.sample new file mode 100755 index 0000000..b58d118 --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/git/hooks/commit-msg.sample @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to check the commit log message. +# Called by "git commit" with one argument, the name of the file +# that has the commit message. The hook should exit with non-zero +# status after issuing an appropriate message if it wants to stop the +# commit. The hook is allowed to edit the commit message file. +# +# To enable this hook, rename this file to "commit-msg". + +# Uncomment the below to add a Signed-off-by line to the message. +# Doing this in a hook is a bad idea in general, but the prepare-commit-msg +# hook is more suited to it. +# +# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" + +# This example catches duplicate Signed-off-by lines. + +test "" = "$(grep '^Signed-off-by: ' "$1" | + sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || { + echo >&2 Duplicate Signed-off-by lines. + exit 1 +} diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/hooks/fsmonitor-watchman.sample b/tests/test_project_fixtures/test_non_root_git_project/git/hooks/fsmonitor-watchman.sample new file mode 100755 index 0000000..e673bb3 --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/git/hooks/fsmonitor-watchman.sample @@ -0,0 +1,114 @@ +#!/usr/bin/perl + +use strict; +use warnings; +use IPC::Open2; + +# An example hook script to integrate Watchman +# (https://facebook.github.io/watchman/) with git to speed up detecting +# new and modified files. +# +# The hook is passed a version (currently 1) and a time in nanoseconds +# formatted as a string and outputs to stdout all files that have been +# modified since the given time. Paths must be relative to the root of +# the working tree and separated by a single NUL. +# +# To enable this hook, rename this file to "query-watchman" and set +# 'git config core.fsmonitor .git/hooks/query-watchman' +# +my ($version, $time) = @ARGV; + +# Check the hook interface version + +if ($version == 1) { + # convert nanoseconds to seconds + $time = int $time / 1000000000; +} else { + die "Unsupported query-fsmonitor hook version '$version'.\n" . + "Falling back to scanning...\n"; +} + +my $git_work_tree; +if ($^O =~ 'msys' || $^O =~ 'cygwin') { + $git_work_tree = Win32::GetCwd(); + $git_work_tree =~ tr/\\/\//; +} else { + require Cwd; + $git_work_tree = Cwd::cwd(); +} + +my $retry = 1; + +launch_watchman(); + +sub launch_watchman { + + my $pid = open2(\*CHLD_OUT, \*CHLD_IN, 'watchman -j --no-pretty') + or die "open2() failed: $!\n" . + "Falling back to scanning...\n"; + + # In the query expression below we're asking for names of files that + # changed since $time but were not transient (ie created after + # $time but no longer exist). + # + # To accomplish this, we're using the "since" generator to use the + # recency index to select candidate nodes and "fields" to limit the + # output to file names only. Then we're using the "expression" term to + # further constrain the results. + # + # The category of transient files that we want to ignore will have a + # creation clock (cclock) newer than $time_t value and will also not + # currently exist. + + my $query = <<" END"; + ["query", "$git_work_tree", { + "since": $time, + "fields": ["name"], + "expression": ["not", ["allof", ["since", $time, "cclock"], ["not", "exists"]]] + }] + END + + print CHLD_IN $query; + close CHLD_IN; + my $response = do {local $/; }; + + die "Watchman: command returned no output.\n" . + "Falling back to scanning...\n" if $response eq ""; + die "Watchman: command returned invalid output: $response\n" . + "Falling back to scanning...\n" unless $response =~ /^\{/; + + my $json_pkg; + eval { + require JSON::XS; + $json_pkg = "JSON::XS"; + 1; + } or do { + require JSON::PP; + $json_pkg = "JSON::PP"; + }; + + my $o = $json_pkg->new->utf8->decode($response); + + if ($retry > 0 and $o->{error} and $o->{error} =~ m/unable to resolve root .* directory (.*) is not watched/) { + print STDERR "Adding '$git_work_tree' to watchman's watch list.\n"; + $retry--; + qx/watchman watch "$git_work_tree"/; + die "Failed to make watchman watch '$git_work_tree'.\n" . + "Falling back to scanning...\n" if $? != 0; + + # Watchman will always return all files on the first query so + # return the fast "everything is dirty" flag to git and do the + # Watchman query just to get it over with now so we won't pay + # the cost in git to look up each individual file. + print "/\0"; + eval { launch_watchman() }; + exit 0; + } + + die "Watchman: $o->{error}.\n" . + "Falling back to scanning...\n" if $o->{error}; + + binmode STDOUT, ":utf8"; + local $, = "\0"; + print @{$o->{files}}; +} diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/hooks/post-update.sample b/tests/test_project_fixtures/test_non_root_git_project/git/hooks/post-update.sample new file mode 100755 index 0000000..ec17ec1 --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/git/hooks/post-update.sample @@ -0,0 +1,8 @@ +#!/bin/sh +# +# An example hook script to prepare a packed repository for use over +# dumb transports. +# +# To enable this hook, rename this file to "post-update". + +exec git update-server-info diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-applypatch.sample b/tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-applypatch.sample new file mode 100755 index 0000000..4142082 --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-applypatch.sample @@ -0,0 +1,14 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed +# by applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-applypatch". + +. git-sh-setup +precommit="$(git rev-parse --git-path hooks/pre-commit)" +test -x "$precommit" && exec "$precommit" ${1+"$@"} +: diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-commit.sample b/tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-commit.sample new file mode 100755 index 0000000..68d62d5 --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-commit.sample @@ -0,0 +1,49 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git commit" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message if +# it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-commit". + +if git rev-parse --verify HEAD >/dev/null 2>&1 +then + against=HEAD +else + # Initial commit: diff against an empty tree object + against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 +fi + +# If you want to allow non-ASCII filenames set this variable to true. +allownonascii=$(git config --bool hooks.allownonascii) + +# Redirect output to stderr. +exec 1>&2 + +# Cross platform projects tend to avoid non-ASCII filenames; prevent +# them from being added to the repository. We exploit the fact that the +# printable range starts at the space character and ends with tilde. +if [ "$allownonascii" != "true" ] && + # Note that the use of brackets around a tr range is ok here, (it's + # even required, for portability to Solaris 10's /usr/bin/tr), since + # the square bracket bytes happen to fall in the designated range. + test $(git diff --cached --name-only --diff-filter=A -z $against | + LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0 +then + cat <<\EOF +Error: Attempt to add a non-ASCII file name. + +This can cause problems if you want to work with people on other platforms. + +To be portable it is advisable to rename the file. + +If you know what you are doing you can disable this check using: + + git config hooks.allownonascii true +EOF + exit 1 +fi + +# If there are whitespace errors, print the offending file names and fail. +exec git diff-index --check --cached $against -- diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-push.sample b/tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-push.sample new file mode 100755 index 0000000..6187dbf --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-push.sample @@ -0,0 +1,53 @@ +#!/bin/sh + +# An example hook script to verify what is about to be pushed. Called by "git +# push" after it has checked the remote status, but before anything has been +# pushed. If this script exits with a non-zero status nothing will be pushed. +# +# This hook is called with the following parameters: +# +# $1 -- Name of the remote to which the push is being done +# $2 -- URL to which the push is being done +# +# If pushing without using a named remote those arguments will be equal. +# +# Information about the commits which are being pushed is supplied as lines to +# the standard input in the form: +# +# +# +# This sample shows how to prevent push of commits where the log message starts +# with "WIP" (work in progress). + +remote="$1" +url="$2" + +z40=0000000000000000000000000000000000000000 + +while read local_ref local_sha remote_ref remote_sha +do + if [ "$local_sha" = $z40 ] + then + # Handle delete + : + else + if [ "$remote_sha" = $z40 ] + then + # New branch, examine all commits + range="$local_sha" + else + # Update to existing branch, examine new commits + range="$remote_sha..$local_sha" + fi + + # Check for WIP commit + commit=`git rev-list -n 1 --grep '^WIP' "$range"` + if [ -n "$commit" ] + then + echo >&2 "Found WIP commit in $local_ref, not pushing" + exit 1 + fi + fi +done + +exit 0 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-rebase.sample b/tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-rebase.sample new file mode 100755 index 0000000..6cbef5c --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-rebase.sample @@ -0,0 +1,169 @@ +#!/bin/sh +# +# Copyright (c) 2006, 2008 Junio C Hamano +# +# The "pre-rebase" hook is run just before "git rebase" starts doing +# its job, and can prevent the command from running by exiting with +# non-zero status. +# +# The hook is called with the following parameters: +# +# $1 -- the upstream the series was forked from. +# $2 -- the branch being rebased (or empty when rebasing the current branch). +# +# This sample shows how to prevent topic branches that are already +# merged to 'next' branch from getting rebased, because allowing it +# would result in rebasing already published history. + +publish=next +basebranch="$1" +if test "$#" = 2 +then + topic="refs/heads/$2" +else + topic=`git symbolic-ref HEAD` || + exit 0 ;# we do not interrupt rebasing detached HEAD +fi + +case "$topic" in +refs/heads/??/*) + ;; +*) + exit 0 ;# we do not interrupt others. + ;; +esac + +# Now we are dealing with a topic branch being rebased +# on top of master. Is it OK to rebase it? + +# Does the topic really exist? +git show-ref -q "$topic" || { + echo >&2 "No such branch $topic" + exit 1 +} + +# Is topic fully merged to master? +not_in_master=`git rev-list --pretty=oneline ^master "$topic"` +if test -z "$not_in_master" +then + echo >&2 "$topic is fully merged to master; better remove it." + exit 1 ;# we could allow it, but there is no point. +fi + +# Is topic ever merged to next? If so you should not be rebasing it. +only_next_1=`git rev-list ^master "^$topic" ${publish} | sort` +only_next_2=`git rev-list ^master ${publish} | sort` +if test "$only_next_1" = "$only_next_2" +then + not_in_topic=`git rev-list "^$topic" master` + if test -z "$not_in_topic" + then + echo >&2 "$topic is already up to date with master" + exit 1 ;# we could allow it, but there is no point. + else + exit 0 + fi +else + not_in_next=`git rev-list --pretty=oneline ^${publish} "$topic"` + /usr/bin/perl -e ' + my $topic = $ARGV[0]; + my $msg = "* $topic has commits already merged to public branch:\n"; + my (%not_in_next) = map { + /^([0-9a-f]+) /; + ($1 => 1); + } split(/\n/, $ARGV[1]); + for my $elem (map { + /^([0-9a-f]+) (.*)$/; + [$1 => $2]; + } split(/\n/, $ARGV[2])) { + if (!exists $not_in_next{$elem->[0]}) { + if ($msg) { + print STDERR $msg; + undef $msg; + } + print STDERR " $elem->[1]\n"; + } + } + ' "$topic" "$not_in_next" "$not_in_master" + exit 1 +fi + +<<\DOC_END + +This sample hook safeguards topic branches that have been +published from being rewound. + +The workflow assumed here is: + + * Once a topic branch forks from "master", "master" is never + merged into it again (either directly or indirectly). + + * Once a topic branch is fully cooked and merged into "master", + it is deleted. If you need to build on top of it to correct + earlier mistakes, a new topic branch is created by forking at + the tip of the "master". This is not strictly necessary, but + it makes it easier to keep your history simple. + + * Whenever you need to test or publish your changes to topic + branches, merge them into "next" branch. + +The script, being an example, hardcodes the publish branch name +to be "next", but it is trivial to make it configurable via +$GIT_DIR/config mechanism. + +With this workflow, you would want to know: + +(1) ... if a topic branch has ever been merged to "next". Young + topic branches can have stupid mistakes you would rather + clean up before publishing, and things that have not been + merged into other branches can be easily rebased without + affecting other people. But once it is published, you would + not want to rewind it. + +(2) ... if a topic branch has been fully merged to "master". + Then you can delete it. More importantly, you should not + build on top of it -- other people may already want to + change things related to the topic as patches against your + "master", so if you need further changes, it is better to + fork the topic (perhaps with the same name) afresh from the + tip of "master". + +Let's look at this example: + + o---o---o---o---o---o---o---o---o---o "next" + / / / / + / a---a---b A / / + / / / / + / / c---c---c---c B / + / / / \ / + / / / b---b C \ / + / / / / \ / + ---o---o---o---o---o---o---o---o---o---o---o "master" + + +A, B and C are topic branches. + + * A has one fix since it was merged up to "next". + + * B has finished. It has been fully merged up to "master" and "next", + and is ready to be deleted. + + * C has not merged to "next" at all. + +We would want to allow C to be rebased, refuse A, and encourage +B to be deleted. + +To compute (1): + + git rev-list ^master ^topic next + git rev-list ^master next + + if these match, topic has not merged in next at all. + +To compute (2): + + git rev-list master..topic + + if this is empty, it is fully merged to "master". + +DOC_END diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-receive.sample b/tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-receive.sample new file mode 100755 index 0000000..a1fd29e --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-receive.sample @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to make use of push options. +# The example simply echoes all push options that start with 'echoback=' +# and rejects all pushes when the "reject" push option is used. +# +# To enable this hook, rename this file to "pre-receive". + +if test -n "$GIT_PUSH_OPTION_COUNT" +then + i=0 + while test "$i" -lt "$GIT_PUSH_OPTION_COUNT" + do + eval "value=\$GIT_PUSH_OPTION_$i" + case "$value" in + echoback=*) + echo "echo from the pre-receive-hook: ${value#*=}" >&2 + ;; + reject) + exit 1 + esac + i=$((i + 1)) + done +fi diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/hooks/prepare-commit-msg.sample b/tests/test_project_fixtures/test_non_root_git_project/git/hooks/prepare-commit-msg.sample new file mode 100755 index 0000000..10fa14c --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/git/hooks/prepare-commit-msg.sample @@ -0,0 +1,42 @@ +#!/bin/sh +# +# An example hook script to prepare the commit log message. +# Called by "git commit" with the name of the file that has the +# commit message, followed by the description of the commit +# message's source. The hook's purpose is to edit the commit +# message file. If the hook fails with a non-zero status, +# the commit is aborted. +# +# To enable this hook, rename this file to "prepare-commit-msg". + +# This hook includes three examples. The first one removes the +# "# Please enter the commit message..." help message. +# +# The second includes the output of "git diff --name-status -r" +# into the message, just before the "git status" output. It is +# commented because it doesn't cope with --amend or with squashed +# commits. +# +# The third example adds a Signed-off-by line to the message, that can +# still be edited. This is rarely a good idea. + +COMMIT_MSG_FILE=$1 +COMMIT_SOURCE=$2 +SHA1=$3 + +/usr/bin/perl -i.bak -ne 'print unless(m/^. Please enter the commit message/..m/^#$/)' "$COMMIT_MSG_FILE" + +# case "$COMMIT_SOURCE,$SHA1" in +# ,|template,) +# /usr/bin/perl -i.bak -pe ' +# print "\n" . `git diff --cached --name-status -r` +# if /^#/ && $first++ == 0' "$COMMIT_MSG_FILE" ;; +# *) ;; +# esac + +# SOB=$(git var GIT_COMMITTER_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# git interpret-trailers --in-place --trailer "$SOB" "$COMMIT_MSG_FILE" +# if test -z "$COMMIT_SOURCE" +# then +# /usr/bin/perl -i.bak -pe 'print "\n" if !$first_line++' "$COMMIT_MSG_FILE" +# fi diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/hooks/update.sample b/tests/test_project_fixtures/test_non_root_git_project/git/hooks/update.sample new file mode 100755 index 0000000..80ba941 --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/git/hooks/update.sample @@ -0,0 +1,128 @@ +#!/bin/sh +# +# An example hook script to block unannotated tags from entering. +# Called by "git receive-pack" with arguments: refname sha1-old sha1-new +# +# To enable this hook, rename this file to "update". +# +# Config +# ------ +# hooks.allowunannotated +# This boolean sets whether unannotated tags will be allowed into the +# repository. By default they won't be. +# hooks.allowdeletetag +# This boolean sets whether deleting tags will be allowed in the +# repository. By default they won't be. +# hooks.allowmodifytag +# This boolean sets whether a tag may be modified after creation. By default +# it won't be. +# hooks.allowdeletebranch +# This boolean sets whether deleting branches will be allowed in the +# repository. By default they won't be. +# hooks.denycreatebranch +# This boolean sets whether remotely creating branches will be denied +# in the repository. By default this is allowed. +# + +# --- Command line +refname="$1" +oldrev="$2" +newrev="$3" + +# --- Safety check +if [ -z "$GIT_DIR" ]; then + echo "Don't run this script from the command line." >&2 + echo " (if you want, you could supply GIT_DIR then run" >&2 + echo " $0 )" >&2 + exit 1 +fi + +if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then + echo "usage: $0 " >&2 + exit 1 +fi + +# --- Config +allowunannotated=$(git config --bool hooks.allowunannotated) +allowdeletebranch=$(git config --bool hooks.allowdeletebranch) +denycreatebranch=$(git config --bool hooks.denycreatebranch) +allowdeletetag=$(git config --bool hooks.allowdeletetag) +allowmodifytag=$(git config --bool hooks.allowmodifytag) + +# check for no description +projectdesc=$(sed -e '1q' "$GIT_DIR/description") +case "$projectdesc" in +"Unnamed repository"* | "") + echo "*** Project description file hasn't been set" >&2 + exit 1 + ;; +esac + +# --- Check types +# if $newrev is 0000...0000, it's a commit to delete a ref. +zero="0000000000000000000000000000000000000000" +if [ "$newrev" = "$zero" ]; then + newrev_type=delete +else + newrev_type=$(git cat-file -t $newrev) +fi + +case "$refname","$newrev_type" in + refs/tags/*,commit) + # un-annotated tag + short_refname=${refname##refs/tags/} + if [ "$allowunannotated" != "true" ]; then + echo "*** The un-annotated tag, $short_refname, is not allowed in this repository" >&2 + echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2 + exit 1 + fi + ;; + refs/tags/*,delete) + # delete tag + if [ "$allowdeletetag" != "true" ]; then + echo "*** Deleting a tag is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/tags/*,tag) + # annotated tag + if [ "$allowmodifytag" != "true" ] && git rev-parse $refname > /dev/null 2>&1 + then + echo "*** Tag '$refname' already exists." >&2 + echo "*** Modifying a tag is not allowed in this repository." >&2 + exit 1 + fi + ;; + refs/heads/*,commit) + # branch + if [ "$oldrev" = "$zero" -a "$denycreatebranch" = "true" ]; then + echo "*** Creating a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/heads/*,delete) + # delete branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/remotes/*,commit) + # tracking branch + ;; + refs/remotes/*,delete) + # delete tracking branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a tracking branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + *) + # Anything else (is there anything else?) + echo "*** Update hook: unknown type of update to ref $refname of type $newrev_type" >&2 + exit 1 + ;; +esac + +# --- Finished +exit 0 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/index b/tests/test_project_fixtures/test_non_root_git_project/git/index new file mode 100644 index 0000000000000000000000000000000000000000..dbd8c5de3d828ee73f7220fc8c16c20ddbd133b9 GIT binary patch literal 1797 zcmZ?q402{*U|<4b{umcuedbt36&TIH@RyMxPo|WCp>YWV1M>?g)-s-OCVk!l?O7L> z)*gFbC=|No%S|2ziIl9wy!8C|f};Ga)Z`NV+{C=Z^i;iqN(Kg)c`zDkZaJ#C3=Gfa zKAOGh;x%XQZq0S&Q8x}f=?R|5pn_&@NosLPd}2X?p?-XPW?p7Vd_33=p!;#zQ;%kk zeUHWG&$q71xwd|u;nZ|!$-bi|bL1ElaoUrZlADMy^jE&gD%E0U584L=z%`Ye@hK7?LqafRr2Qe-X8e+b32deo@aw2lfocIL*(^OfO0-$;{6y);BOPFa(EMW?~LJ*ns}>Q_I9D# z%eYhYO1<)C&eR3()4D!Bvs`3m@+4S`!HP(Gjp7sI^Gb7a;?puyb5i1s5Y~h2kCWPV zwG>7}?e9Ue|4{!vX)a6uI>q=o->&p^|2@2cPo{yvhDiI3LH6h8A-MtW0$6;)Xo&st zS*Z5oNT2$|*pHf2f&PrrNlgfc(GdF-ywL31DRZaU>zMt~x9@k~S^X)6Dd$Yjm*osf zxb4eNNzH+zBv5X^l^+zm(d@CQdCGj~?(|(1k@flCo>&?hm6{fR!;>FCIS_0OEWBVe z#2<>SXy)5beC4u8;`gO59L}7P8ul!bClxvE@R(ngnOct9{4!N3H1n~S8|v7?3063v z$A|AN$>^!qfc^l}V1JaUN~7At6EY)H_-9>`(ns$nw`&DnvKX9kKI6-P*Pi0kl9J54 zbZDf&!U;x0?U6yXhnb@|_UY~JqYvL|Za!UiE@|uY6SvvkF(~8nPiYZy#KX*o(NKG2 zQSD)zxhidq?CVGC;xEs+@hm>~@AS5mDHHJ9Q(l~&3C}hRAwjOLz+|?T!O&E}kn7b1 zkE3n8w{FyIE)VyzL%Ahsqr>>$ZEe*`PntkpeT5u&R}Q& zG%DuPiH}d`&s?MXvT^mNZEL@&&s%&8QHn8`C>U_n+2LRnm BZOZ@v literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/info/exclude b/tests/test_project_fixtures/test_non_root_git_project/git/info/exclude new file mode 100644 index 0000000..a5196d1 --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/git/info/exclude @@ -0,0 +1,6 @@ +# git ls-files --others --exclude-from=.git/info/exclude +# Lines that start with '#' are comments. +# For a project mostly in C, the following would be a good set of +# exclude patterns (uncomment them if you want to use them): +# *.[oa] +# *~ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/logs/HEAD b/tests/test_project_fixtures/test_non_root_git_project/git/logs/HEAD new file mode 100644 index 0000000..e3682ee --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/git/logs/HEAD @@ -0,0 +1,6 @@ +0000000000000000000000000000000000000000 30b505e031fc496c88d36be5ed7892337c640223 David Wobrock 1547980206 +0100 commit (initial): init +30b505e031fc496c88d36be5ed7892337c640223 a3f20003e5407a44000854c41ba29c06a3bbba82 David Wobrock 1547980230 +0100 commit (amend): init +a3f20003e5407a44000854c41ba29c06a3bbba82 0e52dc2380789e401cf385d3376af39f4bb6598f David Wobrock 1547980287 +0100 commit (amend): init +0e52dc2380789e401cf385d3376af39f4bb6598f 0140e142724fc58944797f9ddc2ebf964146339a David Wobrock 1547980306 +0100 commit: init migration +0140e142724fc58944797f9ddc2ebf964146339a 2c46f438a89972f9ce2d5151a825a5bfb7f7db4b David Wobrock 1547980356 +0100 commit: add ko migration +2c46f438a89972f9ce2d5151a825a5bfb7f7db4b f122245e6a3ce63b99e0beeb8403031edd08ed50 David Wobrock 1547980398 +0100 commit: Add ok migration diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/logs/refs/heads/master b/tests/test_project_fixtures/test_non_root_git_project/git/logs/refs/heads/master new file mode 100644 index 0000000..e3682ee --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/git/logs/refs/heads/master @@ -0,0 +1,6 @@ +0000000000000000000000000000000000000000 30b505e031fc496c88d36be5ed7892337c640223 David Wobrock 1547980206 +0100 commit (initial): init +30b505e031fc496c88d36be5ed7892337c640223 a3f20003e5407a44000854c41ba29c06a3bbba82 David Wobrock 1547980230 +0100 commit (amend): init +a3f20003e5407a44000854c41ba29c06a3bbba82 0e52dc2380789e401cf385d3376af39f4bb6598f David Wobrock 1547980287 +0100 commit (amend): init +0e52dc2380789e401cf385d3376af39f4bb6598f 0140e142724fc58944797f9ddc2ebf964146339a David Wobrock 1547980306 +0100 commit: init migration +0140e142724fc58944797f9ddc2ebf964146339a 2c46f438a89972f9ce2d5151a825a5bfb7f7db4b David Wobrock 1547980356 +0100 commit: add ko migration +2c46f438a89972f9ce2d5151a825a5bfb7f7db4b f122245e6a3ce63b99e0beeb8403031edd08ed50 David Wobrock 1547980398 +0100 commit: Add ok migration diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/01/40e142724fc58944797f9ddc2ebf964146339a b/tests/test_project_fixtures/test_non_root_git_project/git/objects/01/40e142724fc58944797f9ddc2ebf964146339a new file mode 100644 index 0000000..3b6c8db --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/git/objects/01/40e142724fc58944797f9ddc2ebf964146339a @@ -0,0 +1,2 @@ +x¥�Á +!E[ûîƒáéÓ…ˆýCk}ê$åbõû}BËsáî¥ZJî\*±ë-FnÒL„h¼I6H��¤Á*oÑ&OJR¤ØÃµ¸uQË@ ,ÆF‚—Ù¥QPÞÏÚšÄܳ_kãg÷Ê�_ªo•nü¾8½xZ‹Ë÷‰j9r¡Õb Ì|€�t íñËÛ¸ZòÚ\Ïuc�¿M1 \ No newline at end of file diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/0e/52dc2380789e401cf385d3376af39f4bb6598f b/tests/test_project_fixtures/test_non_root_git_project/git/objects/0e/52dc2380789e401cf385d3376af39f4bb6598f new file mode 100644 index 0000000000000000000000000000000000000000..e6f6376d2c0e895625ff49adbafb739bdc921a8b GIT binary patch literal 131 zcmV-}0DS*=0hNtG4#FT106p`Hy_+-(Y@sB^c<>LN>9Q(ONVtd3NOe* l=KH|4>_Ly@!-NJMY*8bs)vn_%|0gE@OQ^i$uHMW)JB~%wK9T?c literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/15/d47f23b30965a0ef668af1e639a23634e4532a b/tests/test_project_fixtures/test_non_root_git_project/git/objects/15/d47f23b30965a0ef668af1e639a23634e4532a new file mode 100644 index 0000000000000000000000000000000000000000..359a96671fcc9d8d5aab8fd846703707c6be9117 GIT binary patch literal 274 zcmV+t0qy>H0bP&HYQ!KEg}e4CF3iGANrI-cmp`quPPB>My=oPccn9yOl7< z56MXeBexA+FRS9mRA0qoO9;eKxS&;N2aOwa@V1L-QBaSY7jjuRErBw|xX@O6Ee$=E zyX`$A+>$O%9sU4*r9LS2q|vD2N>2%UUt#5p9hEdAlb$B4HW(wu^iwqd47=Lplj|4j Yal$ocC>&)lzT@956Yg603wynSsx{|;VgLXD literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/16/8e382963b2ef0de835c22c48c2bf3a702e83a0 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/16/8e382963b2ef0de835c22c48c2bf3a702e83a0 new file mode 100644 index 0000000000000000000000000000000000000000..0835b5a4da36b80c87d2614216de7383976b7b30 GIT binary patch literal 149 zcmV;G0BZku0V^p=O;s>7v0yMXFfcPQQHYPv%*!l^kJl@xWOz3B(d%*C%e@HGaO$Uf?uk%ZY}4B^H*RP-Ue>IbbElu}^Pz zAAR^%bMxuCb4gpDpSaET4yvTQI6V_&%Br+AvacVli@!YQ#f}nA literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/1c/dc834ac63fc5edefbbdcabf264026ccc8cf4a7 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/1c/dc834ac63fc5edefbbdcabf264026ccc8cf4a7 new file mode 100644 index 0000000000000000000000000000000000000000..e0b776b8217c9d5dc2e9929ef2c7b3da498fd364 GIT binary patch literal 123 zcmV->0EGW|0ZYosPf{?nFl9(9%Fk6u$x6&i&(}*yQpn6L$S*2U$jwhl%_-*MO3q0v zE>>{VfbjKvLBg6=T%38OIXUrZnW;G`3bs(idY*YDsp+XjZXi(&O=LCkMmSWZq^2d7 d=9JhPf|Tdy#S=6Zq`)?$s5DiR3jjd>LkdKTIr9Jj literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/1d/c36fd270ce97d05f4fa75c3c16917951d71768 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/1d/c36fd270ce97d05f4fa75c3c16917951d71768 new file mode 100644 index 0000000000000000000000000000000000000000..829448e00b18c14e48fabc40bc16c680fcfa0476 GIT binary patch literal 92 zcmV-i0HgnS0ZYosPg1ZnVn{2>&s9jtO3X{o*GnuYC|1bKEyyn_QE)6MaL&(5%S`9u y;!4g*EG||ENi8k`iW)+MHQ)*~t+*6`ATKdDRl!z4y#%N%9%z!GIu`)2m>|_GKqZ<0 literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/21/a03f36ba451433c9fefe71d9fd05e80cefe458 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/21/a03f36ba451433c9fefe71d9fd05e80cefe458 new file mode 100644 index 0000000000000000000000000000000000000000..8db52c7e55c08fc73dd96d868dd974a3c38cc35e GIT binary patch literal 122 zcmV-=0EPc}0V^p=O;s>7G-5C`FfcPQQOHfqOH5DIE2v~Jo^U38-U97e7njx^dtWFN zy5-AF9uor~P$)?)E{RVpC@^I3y1ruuufxQdo!Z-bWy;0;kGW({Mp9Eyl%JKFT*9Dl cztZYLjPb(@XKo3~cF0L;pV`w60KMWb6^&puqyPW_ literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/29/56309db5fd77d3474462f613653d73787f214f b/tests/test_project_fixtures/test_non_root_git_project/git/objects/29/56309db5fd77d3474462f613653d73787f214f new file mode 100644 index 0000000000000000000000000000000000000000..215b13db2c2b3c125adb950eb97251dc96b898d2 GIT binary patch literal 240 zcmV5HDfR|FfcPQQHYPv%*!l^kJl@xWOz3B(d9WuIY1f&|po&UTi%Y<2YMwG5x;uSWMPz;cwXJY9_vNStRlM(iaYA&PWY=7Ri%}oOS?Y9cmCa&~*F& literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/2c/46f438a89972f9ce2d5151a825a5bfb7f7db4b b/tests/test_project_fixtures/test_non_root_git_project/git/objects/2c/46f438a89972f9ce2d5151a825a5bfb7f7db4b new file mode 100644 index 0000000..a022075 --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/git/objects/2c/46f438a89972f9ce2d5151a825a5bfb7f7db4b @@ -0,0 +1,4 @@ +x¥ŽM!ƒ]sŠ·7™ðó˜�ÄÞÁ5ð`$Ê`êõÅxÓÕ×´MC-%w�¨v½ÅÞ�CLA%3›”P`M¼ \ No newline at end of file diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/2c/5613c15e0a45ad460b4973dcdf942846b77b72 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/2c/5613c15e0a45ad460b4973dcdf942846b77b72 new file mode 100644 index 0000000000000000000000000000000000000000..71c146a30d7c641f5e6f863a9f241172bdaf9fcd GIT binary patch literal 132 zcmV-~0DJ#<0V^p=O;s>7HexU|FfcPQQ7|wtFpSU4%Ph%E%+V{TWSG5GwB(X~YFZ@E zx7~9dOJulZKd?tAHHuG+&nwNziBHQ+%}I$j0_hOFQm?$3Gj+lHw62fOEEk!XJPFo< m>WBxM93Kx-_H6E>*_$q2bN24mTvr}-5Ghr|^FfcPQQHYPv%*!l^kJl@xWOz3B(dsk>|2d8+&GLDdzfmXu`Xr5A&YYjl0$_Fd!W z+w28SQ?{IF*jHj<>4~W?F`Oov5?KK%$NM z+fS0yti}H5U>Mfp&wP)pI;T764s0`Rj_d^3Kfn3WXPIt6 zDT{`bg6nI@l`^QUQu(J0!eL(ogm!ETPts6}eJAsL^<}xa-KvLmS>A7MAJn()>igGq z{tj{>FY4&{k!p!0qV3-2mkB0roT!o9IyTTeqTO>*v!lYG#XT9a0;g8#iRxZRMX9RU z1Vy7dZ7I>{sivdAeX_N7j@@tg49WumRy@!%%-{$u>JD0V;Mowc9LRwq^uZmht?wOy z98khz`bF$>2HN{RV0@Hz-8e~Bsq^^Ng!^C;gaHTE4H)!4X(VE3cE+irHt@(xbBlZHB=(@}Q=s}NHB%U@_=IC}~M t2wB#m2b3^H2>T~Jb}wl+uWP6Miq?|*)a5_7XC4;6K(`+*vtKxd{a_j3=zIVG literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/41/07cf9a6c4633c97bd7ee2a73353c88deca64a4 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/41/07cf9a6c4633c97bd7ee2a73353c88deca64a4 new file mode 100644 index 0000000000000000000000000000000000000000..90e5aac9f9f46d1fb779e31a6951a5445dc93b83 GIT binary patch literal 122 zcmV-=0EPc}0V^p=O;s>7G-5C`FfcPQQOHfqOH5DIE2v~Jo^U38-U97e7njx^dtWFN zy5-AF9uor~P$)?)E{RVpC@^Hu3^SO!^>6uQcbBAZ!l|~!74?e#NNNg-^0QKtOBlW_ cEZD8=Y;^6-duwNpPq+9=dm@(u0L=d|Z&KMbeE4WH2!R0)>>U#Ju$U_=2MRtkmQZhK?h9H)Jq0FfcPQQHYPv%*!l^kJl@xWOz3B(dE~-7BFPrVmDp2BE0W8R9#|9Ze||HtR9QcpKo22b8Y=R z!>Q@el6^-_=E$L`NoLsl$2KD6(pslUnLl`o=Y8#ctLtqFQ&dn;3^GUdaQ>x&bJH)x z`!A2N5t~>UcwIch!~h5sax>G55=%1k^NJaMn=@YfJ3oHW)YUWO=da;7ESlhY32IJm zeoAT%*re=_)!zktRr9{MAIdvzF63-@Y0f%yMac}aP0cGZ^UFSHbp79BsrT-e?{~fl zP*o+V#U)^qYMwG5x;uSWMPz;cwXJY9_vNStRlM(iaYA&PWY= O7Ri%}oOS>cL77k0&6ytn literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/4b/0dddde301971fc19f1817a22bf0948890ccacc b/tests/test_project_fixtures/test_non_root_git_project/git/objects/4b/0dddde301971fc19f1817a22bf0948890ccacc new file mode 100644 index 0000000000000000000000000000000000000000..26178f21e05e0da93adb0d054f800786eb2bf271 GIT binary patch literal 123 zcmV->0EGW|0V^p=O;s>7G-5C`FfcPQQOHfqOH5DIE2v~Jo^U38-U97e7njx^dtWFN zy5-AF9uor~P$)?)E{RVpC@^I3WmvcN-m?QoCOl>AUwDPve#_s`B}i%tit@8klS>%B dEiBlr>}+)H&3kKSk59MwN_!%g0{}`iGZR`0GFAWp literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/4c/f37def1d191c7c4b34e1053fa923e6d649525a b/tests/test_project_fixtures/test_non_root_git_project/git/objects/4c/f37def1d191c7c4b34e1053fa923e6d649525a new file mode 100644 index 0000000000000000000000000000000000000000..e152596e592263793ca8a4db091c005390b84d35 GIT binary patch literal 123 zcmV->0EGW|0V^p=O;s>7G-5C`FfcPQQOHfqOH5DIE2v~Jo^U38-U97e7njx^dtWFN zy5-AF9uor~P$)?)E{RVpC@^G*`E=sr)A=*k=)P=R{b}3UZ|d_F-$GJTP?VpQnq0#0 dZDGM~WoM&nZ{AxwdwjaZSK1S~900tWHB|g%Hqih8 literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/4d/00aeaddee6c0c490e5018fa1d40b3fb4fd55a4 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/4d/00aeaddee6c0c490e5018fa1d40b3fb4fd55a4 new file mode 100644 index 0000000000000000000000000000000000000000..e213d67e7917f920f67124d0b00faad5ebd55486 GIT binary patch literal 240 zcmV5HDfR|FfcPQQHYPv%*!l^kJl@xWOz3B(docPyd&WGu^Aby5UTt@Kcn)e# zZhlH?4%npZkJaA=d{y(lxF5jGj%+zwQnu)Jm7D@cR^o7HjGg8BzMe?K~ryT&ZIBI>o>UR79 literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/56/26f87a33217c62ed70006bda0735aaa8578ee7 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/56/26f87a33217c62ed70006bda0735aaa8578ee7 new file mode 100644 index 0000000000000000000000000000000000000000..fa9f1c093f9bb4da758cb4dc285395208c86917b GIT binary patch literal 158 zcmV;P0Ac@l0ZYosPf{?nG-hD_%*z!g;2e|800oRd+5w1*S%5?e14FO|NW@PANHCxg z#aTcx{fzwFRQ;61vdk3yl&r+O^nBgi%=DtflFa-(-JHz4lGGyolGNgoVlWwBP?VpQ znp_f}mRV6!T9gVEP0lYW0*OLpAxaYq3Jmq*<1_OzOXB183MxxDfY#aM=BJeAq}qWT MRSd)o03!u8+~WC6v;Y7A literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/57/97dee69dcb584dede25d7c02d34caf96d70236 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/57/97dee69dcb584dede25d7c02d34caf96d70236 new file mode 100644 index 0000000000000000000000000000000000000000..b20e73309b43400861e00f8415301b6f4b73510a GIT binary patch literal 109 zcmV-z0FwWB0ZYosPf{>6He*OD%Fk6u$x6&i&(}*yQpn6L$S*2U$jwhl%_-*MO3q0v zE>>{VfbjKvLBg6=T%38OIXUrZnW;G`3bs(idY*YDsp+XjZXi(&O=LCkMmSWZq^2d7 P=9JhPYH|Sp2`VvR_)al; literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/59/e2ac235a403799063c7e7f2a137c462ac17ba2 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/59/e2ac235a403799063c7e7f2a137c462ac17ba2 new file mode 100644 index 0000000000000000000000000000000000000000..1d2d86cfc8e2834df239bee54e88aabe996a876e GIT binary patch literal 583 zcmV-N0=WHn0gY2%ixV*rpY6Ys6}2BB4??$a-Pi+Pii&!8cpyGheJRqt?IvwgHp!A? z&%0;AFYE`f=1+=G+|8MbU-{Zvq zR(MCidQe6nd$8(3bhmsLg|c;U#mv79erf@kksWfzn(UD%Wza<$WK{M%7qu!pye4mmI#0?FR#Fkb{t&>atMOK9(iA$Ov$#TbJ0-N z^aPuswy9^n!;120_v+!8H>KWD%%IJ?}voqLMQyls!Rd z9Yp#$dE_0vCChMpvdoQ9zK?f_HgHexd~rr>mLc*0?N&JMyx_}oj~k(z@B~%(cUgfd z^*yI7zZQ%(>1I;wnjM)nn?(I4*>HFJlx@Y0s||0hg*FDatowS$HH>&#-8x_4E2&vs V@;A>=wtitp(Ks6S{{nbOKCi&5HDfR|FfcPQQHYPv%*!l^kJl@xWOz3B(dGu&zI#;%SuvCcbi6B=P&w7Y=96NDX@y$&-qlb^z7FYk{o=b-n-q literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/6b/f17bf7104d256ef447c26ecb37124331d29cae b/tests/test_project_fixtures/test_non_root_git_project/git/objects/6b/f17bf7104d256ef447c26ecb37124331d29cae new file mode 100644 index 0000000000000000000000000000000000000000..b3da19a60283d744529763eb75d06328228ea2aa GIT binary patch literal 91 zcmV-h0HptT0ZYosPg1b3WJoK@&s9jtO3X{o*GoxK$jmLsFDg;U%}+_qDdyrz&PgmT xR&dmS@b!E_!kSiGoOz`=Iq_+ksW~YMwot`-o_Qsy>8V9-AW;oXE&x@aAn_2%D`5Zt literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/73/5de5db8bc5e1ed29b3cb7ece62b5e7c8db06ee b/tests/test_project_fixtures/test_non_root_git_project/git/objects/73/5de5db8bc5e1ed29b3cb7ece62b5e7c8db06ee new file mode 100644 index 0000000000000000000000000000000000000000..66ccc09794ebf5efe30fa53a069a0084dc53b13f GIT binary patch literal 391 zcmV;20eJp+0gX~!OT#b}^*O)dGK8*B6Xt`1f)64N2R?~DiO#f5w~QvYB&i?&-kYq2 zF;MJN8qPiE+;dWOSiy36bvB#LI&Fh;o1lEy^bYr`4)FZ=0Jmscy&aqk8ZBc_I|c89 z>v|aoZv8uS+6Qnr&}1C&5D-4J`t%%D=)j;;plyrJBns#|CA|W#RLOw8T?oA|g=nz$ zyxB{;#ZjNvXoRw2!50e=u-CO05iLmH3wHM<4Uzehtp;01dk5Xby5MlrG$1W#)1wO| zK6IR}2iNeD+>IS3L^O~N-0Pr{dS0+s_5=3-1~NL0#8UtO literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/7c/dae90d4510701438cf671bb67772202f825891 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/7c/dae90d4510701438cf671bb67772202f825891 new file mode 100644 index 0000000..f03c030 --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/git/objects/7c/dae90d4510701438cf671bb67772202f825891 @@ -0,0 +1 @@ +x+)JMU0´0a040031Q0000ŒÏÌË,ÉLÌÑ+¨d˜½U´ä’}jZ$Ï·ÝsKd¸e?°G(5ŠOŒÏ+ÍɉOËLÍI‰7é½R¯¼™3uÁû´®�Ï,™™< ÖBè0éÈÏCÒÒÓ¿OšËÒ¿N1~η+}Ýoà“i€ê‰»&>¤ìÙÜG³7]¼æìÝ­¹®<êÆ¡'=Áå,JU \ No newline at end of file diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/7c/e503c2dd97ba78597f6ff6e4393132753573f6 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/7c/e503c2dd97ba78597f6ff6e4393132753573f6 new file mode 100644 index 0000000000000000000000000000000000000000..250bef6ac737f97163f7f541ed98f1f4581b0f67 GIT binary patch literal 72 zcmV-O0Jr~m0ZYosPf{>5U`Q*<&s9jtO3X{o*DFaaE>XzLEyyn_Q3wIDofC^wxww=S eoQqNuOHvgo^Gk~qKx&E=GE$3D^|$~d*cUrI-yGBc literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/81/45e446f728f9ed6ba04294b4c880be74383949 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/81/45e446f728f9ed6ba04294b4c880be74383949 new file mode 100644 index 0000000000000000000000000000000000000000..84e0a1301f36029398b81c56f1594ef494f0536c GIT binary patch literal 1285 zcmV+g1^W7U0j*YBbJ|7}?z4Wy+HN9yY!*{bTgNkbkU=JDxD^SzNhZ}S(gF**d3Ob+ z9sl>9)eUeUbvj`fkoN4kf9Em|;xW2vy!rWutDbh(d+r25vO)FTj2WlEauE1< z63OBS!B@^0sAU1Y04u0AlQI!E^|~K>0_RFf6TCRA)2OZ_)@7V9Pt;4h>$!Y6qiB)_ z0ScIqD4uNmB9RZ8DC1~Jf|QDHQpV|IOOpzl#=<1#phA>SVl6c71l^`A@KHkKOn{?; z`BbSbqX>2_)BzJWz>3v1Jdas)dTZFG+p>li2xEMvm9OY+b5>L<64FR+f>}dp zBvK~HIDmLVULiw%>ZyzZyG<#2VHRicO2&1cCPBPbD(c>hdJC02NGM1$o1>xSd_WJz zuxIt!H)ug=k_A*yk5dWnYk(U-5*w3c~0YJ+}2vJ#MW7eHI1R9GJTR30cO;_~zgP9a2HtJUh5fCE#-Y{$=#`F=oGgi{Q8PdSro zY!?sRidG8GTS^tU(mlK-#m-$m$h&nFT2dHCxS9REh(YiPZo<&7HV{SnFPnO0E&bLPMz1eH&Hx;ra4U+(-4IYC5H1f+~fb+TH z6yy?CnG|TCHi-E2IWL6l49Z3|R&}llaEsC(I99)>2pdB(maHoN%0{3E(TcfHLMvm{ z9rY<|u(I?^KAg3N0(v=D{`(SMP9I@V$**wlz+{hhvZ?%i%1ibNCVNDbv}aaqMffQX zDf|Ht9_+TII#tJN8Y;S9fMF%33`2pJ%?^M8-LFMpmJmVV@r9FPXC$Ba1wV}7mf;v` zd@7jbdDWqxk~EMziPp_t+v=HcR;0q6kOg&1L2iY*>LFZ<$3V|e@T5IuW)FxEtC;(0 zr(nRE&%giWfl5^^Ddg1(d4N0^7$fJMJ1}hfp+9W7_eRG87yHA#Wz;jeTP{^iP6>xS zAUD?C7>h@+6&O-YkW^Beg)AVdectEp#JtFQk>X96=-;ZS3j-}o!w!w6a`yej=l!=# z$M=`tOGC<;_Z0j>7Lj?rt6jJD}E`z)BV`*WrriD2_-aw?a^vnt8&Y?40X_HT<#t?A1gZ8YG4WH2!R0)>>U#Ju$U_=2MRtkmQZhR*0`lc!GjDLJEjzvIn+ PIt#vjWqb_)u>%z^_7xhQ literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/88/c4bb3d2e2aa1968f90484f0b6cd77b7c4f7c57 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/88/c4bb3d2e2aa1968f90484f0b6cd77b7c4f7c57 new file mode 100644 index 0000000000000000000000000000000000000000..3f19464b28fa78e38d4fb2818f47c115e506e667 GIT binary patch literal 122 zcmV-=0EPc}0V^p=O;s>7G-5C`FfcPQQOHfqOH5DIE2v~Jo^U38-U97e7njx^dtWFN zy5-AF9uor~P$)?)E{RVpC@^IB_`jbg=ag%np0HB#--0z$C$EtXMp9Eyl%JKFT*B~e cVZm-?XQOLx-dj6+e7eO~+7r1P0Qm$lN=Jk;`v3p{ literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/89/5be6939590f9199877bf41d9fe2ca0f5f501eb b/tests/test_project_fixtures/test_non_root_git_project/git/objects/89/5be6939590f9199877bf41d9fe2ca0f5f501eb new file mode 100644 index 0000000000000000000000000000000000000000..3e08383b6f4070c88ada4e43596780d1166cc1bb GIT binary patch literal 122 zcmV-=0EPc}0V^p=O;s>7G-5C`FfcPQQOHfqOH5DIE2v~Jo^U38-U97e7njx^dtWFN zy5-AF9uor~P$)?)E{RVpC@^IB_`jbg=ag%np0HB#--0z$C$EtXMp9Eyl%JKFT*4sM cXQ7$A={@fY(?dEQhxS_)=ru0@0NrgbgFT)yU;qFB literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/8c/38f3f3dad51e4585f3984282c2a4bec5349c1e b/tests/test_project_fixtures/test_non_root_git_project/git/objects/8c/38f3f3dad51e4585f3984282c2a4bec5349c1e new file mode 100644 index 0000000000000000000000000000000000000000..e68f806e4b9f3596d3c9fcc6aa1f59610147f291 GIT binary patch literal 77 zcmV-T0J8sh0R_Q94uBvG1VGQcViWINOnitx0I6C-SyS-f@14n&8S63~PD8mo literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/8f/255685e632623f016e1ecf18a4e9d58746e1ce b/tests/test_project_fixtures/test_non_root_git_project/git/objects/8f/255685e632623f016e1ecf18a4e9d58746e1ce new file mode 100644 index 0000000000000000000000000000000000000000..2299381e58688912d0b188e2eebfdf26b3fc2dbc GIT binary patch literal 90 zcmV-g0HyzU0V^p=O;xZkVlXr?Ff%bxFfcGMjL*!=EXhpF(JQEAn7viBZYak1wC$DnlIOP&B1LgY#-nw(RO zMQ2pb56R;GSV_K*hsP>^I9K5h#yrKZ`z<5}EwvTt4oj~2ii~=kRV7bX!T&5vnR2~7 ad!c|W4r@y6TD}bv{`8E%t@1bB8HSHG6NXg) literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/91/3c6cc338b8f9d2530f21dd94b939fbc42cf1c4 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/91/3c6cc338b8f9d2530f21dd94b939fbc42cf1c4 new file mode 100644 index 0000000000000000000000000000000000000000..e62ddc5d1d1d9b6ce50c986ff10fbd7844285d35 GIT binary patch literal 56 zcmV-80LTA$0V^p=O;s>4WH2!R0)>>U#Ju$U_=2MRtkmQZ25;WG_Y5Qp|44pptWw&~ O>Cwq^>I?vrbP_(xt{VUV literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/91/ea44a218fbd2f408430959283f0419c921093e b/tests/test_project_fixtures/test_non_root_git_project/git/objects/91/ea44a218fbd2f408430959283f0419c921093e new file mode 100644 index 0000000000000000000000000000000000000000..263fc8c87e325bcaa3c19492252655b82f498d2d GIT binary patch literal 77 zcmV-T0J8sh0ZYosPf{>5W=Jc_&s9jtO3X{o*DKD*FDgkcEh$#W%q;*i6^c^xQc{b! jxRe!~i&7IyQWYxmON$iBGE>Wo6*5wbQuVk1gVGqx_PZe6 literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/98/6913f97e6222f14be4db7d10e90430cc43cc4d b/tests/test_project_fixtures/test_non_root_git_project/git/objects/98/6913f97e6222f14be4db7d10e90430cc43cc4d new file mode 100644 index 0000000000000000000000000000000000000000..c2660a4b63c592c2f67a9a3e996dddd3a6188200 GIT binary patch literal 1268 zcmVT3K0a1Da~w|-#EB3zo^muv7!rgF zFJ;M`_yU#xnxb?`Oc)jXp|-lOz`T7ueqX}pqq?_0ZOr$ zaX2Wa0g+~_D1u)Lxj^|fKsC8dnzKm}q-oljQoW*g^|pYr7)Ru^f<1l5 zV=mR5dY+7>=bfFMDGE4M7y(xZ6Q`FKwZ122Rh*_=m6#LsM@IccBhM)c$dZIf8j)CR zg4sY>%rh$RID~jZULiw4=F5x%+#v)#GmEoiC6Z=9(lA*|6HR|c{Dn*&Bos6m?a|P5 zKcahmXqi^`8Z8J(^MG>VGa}%94Rixa0tq)xfTvP=q=15<;d&p8j}S?9D#qtgGUKnN zlgsmy3A_4jx%!p7J|RK0eD`p5M3?9B>$%4hyjuJ$7V|fMsr$VMl2{dpWieV&F@qS5 zvndi8i@_0K^o}n_O2@bvb-}*NGNLGYuV>#I9q+yExDKp-{-Q`DdYXpRFNz`{6B^Sz znu=*TE|&h~eqakHoI_p@i6ao> z>0z{hBl(h%wSv660NYw%5YFB=JDr{Z2{vRfb`B8HAPC6{GonF4Ge*T)bION)E&Gn& z+LjilILkro)>h~>Q4(wI{O?%+&L&zLe(oq)9R$?*f}Cu7ro%fVqGZ5#;Z@YPRrHHY z9K=R-#55nMwwPmo0exEg^Oiwhu~W%6zJrGB3~k%>M#Em)wr*t!ZI1>mV5oD@c@vFh;a7I6&f{>hfAKFx*mH@g>&+ozVdmpT86g z&)1+HWXF{2va+@$_P{l5OA0oQS90)Xloq|LjrRGkIx(lJG1sADDf~`JG!gOxhQE?!k(uA*{5XwuziLvL`HO z_+vf*#!jUQamTV>=Dm0p&&;%$9i5I&ApY9xKObB_&0)P_{$B8L0|v!gfCeZ9Oa%xP z0SYK0SO`!td;)v`JWgX!9hf9t_Q=0^C4w#LF_cE3cI5fxuM}6TxMKzc9~mPkI11Aa zhZNK9AEgK5NgKDrUR9%Yvc(2%Ge}uwB}z&CKsafmnU0wO?K0d}giEwHIci1T|G_pG zZu>xT5%hi5D}0q3DPaXR;8sl2l_@b**-NfcRbYSuo{H~!9d dIyh|#4%WX`9ma9i4&dCsz(ouP(GN&8nubQ^k@)}s literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/9b/b51574d23f6566590cf6bb9ce31868466be03f b/tests/test_project_fixtures/test_non_root_git_project/git/objects/9b/b51574d23f6566590cf6bb9ce31868466be03f new file mode 100644 index 0000000..d07a118 --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/git/objects/9b/b51574d23f6566590cf6bb9ce31868466be03f @@ -0,0 +1,5 @@ +x]PËjÃ0ìY_±�ƒ�;m! øRrÈ­·„m­�ZY2zÒ¯¯d%MSa„™™�™U#TO�Ë»d÷´ŠqÙ¯ÁÙ.[„Ìà%êÚ"ƒæÛ�Zö +ʼôß +”„eQ>gE™- (‹õCI:­ ´sÖi¤ø0*mÁIîÝ‘ +n½�0$ +Ùd˜³æ¢xïÓ¸’fƒJÒŠÚ8\¨ô*ÊÁùšð‡Kny- ‚7í0b G” eËÑxâ}#§Æ°^üe‚ÍŸˆ�~ÿC(“N“�GÖVÉ&YÜ GÁLC¢0ÞiÂYrÙ*ß8«vAšÖþ�¶S«B錚µ>ÑO<�ƒÚoÅ¿±Úù×ó’/Ô�2Hc‰ý6™Ïo{„Ð4‘N:UºFï¥ÅuLÿ?v¼ºœ �äÓØŸº \ No newline at end of file diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/9d/1dcfdaf1a6857c5f83dc27019c7600e1ffaff8 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/9d/1dcfdaf1a6857c5f83dc27019c7600e1ffaff8 new file mode 100644 index 0000000000000000000000000000000000000000..0f6ee3b48f56b1a9c6c8fb48434b7c9ec77cd87d GIT binary patch literal 56 zcmV-80LTA$0V^p=O;s?qWH2-^Ff%bxh>y?A%PfhH*DI)GcsBRZ>`fQ1IeT|&t}Bna Oap*};@I(NM#S`0rff(EX literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/a3/f20003e5407a44000854c41ba29c06a3bbba82 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/a3/f20003e5407a44000854c41ba29c06a3bbba82 new file mode 100644 index 0000000000000000000000000000000000000000..95bd2eb04938d0aebbe9d2b74a542dc2593fb175 GIT binary patch literal 132 zcmV-~0DJ#<0hNtG4#FT106p`Hy_+;kp|DMi@!%gkBkU?sN3i@ zO=i;@Gms@_M(Z^tjbcWbW|29tGeHtrPb`k2RpHUEwZSnwbAnSnw;FG-OCKCwUp!n& m$oC=EvIjj`KNF7VV2c`2t#%!E{y$;xmr!}hUA+M$SUd~0x;Rb% literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/aa/66ac1debe2ae5fd39cd8e65f6dfd9786649490 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/aa/66ac1debe2ae5fd39cd8e65f6dfd9786649490 new file mode 100644 index 0000000000000000000000000000000000000000..6ec0e9951184206e817bd8034e723211bbb6f9cf GIT binary patch literal 284 zcmV+%0ptF70c}vtP69Cy_S~nK^aKgEl6cX?g9%753I{MAcgybVQqp#sb^v{QcL5U) zoFg1CI|+cT!66y_(ITqR`kD8cN`7U`z#L<{~EAVa0HnN{BfF{zS@{fwu@} zv2o699D>PUz*D_4WH2!R0)>>U#Ju$U_=2MRtkmQZ21oYuvvS;wPgY-lr&Vlf O({b-q$`SyT+!FZEjvJc* literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/bd/fc3d5864d2ad429269f80d739ef58ded2d4b35 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/bd/fc3d5864d2ad429269f80d739ef58ded2d4b35 new file mode 100644 index 0000000000000000000000000000000000000000..7bfac1550118bcdc7812d9a85636683c09cd8964 GIT binary patch literal 195 zcmV;!06hPA0acFA3c@f9##2QQLGj=Nc-&=H1#cpPcMp0KQM$Fx%G!=L6Mb$UK(jv= zL;6emC81xEyJWgt&7u1l4ld)}IfXVlRJU}(gdiyy3HM+igZgQ7m}vYF50lPk*hAlVz?pmFG}-`2o&0L^vagT|NK+ literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/bf/a71e37ed417bd9acf5ef4a44975f7bfd10341a b/tests/test_project_fixtures/test_non_root_git_project/git/objects/bf/a71e37ed417bd9acf5ef4a44975f7bfd10341a new file mode 100644 index 0000000000000000000000000000000000000000..b4d68db3e486312a87edccc00daf94879fa2eef6 GIT binary patch literal 56 zcmV-80LTA$0V^p=O;s>4WH2!R0)>>U#Ju$U_=2MRtkmQZ2E_&TX1iQPj8FdiS9tR; O>kFRuPa*)B0TaK*ry5!S literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/cb/96855f9aa7aae003123eca1addad870c7b8fde b/tests/test_project_fixtures/test_non_root_git_project/git/objects/cb/96855f9aa7aae003123eca1addad870c7b8fde new file mode 100644 index 0000000000000000000000000000000000000000..df8c6f3f439224ad8174587b2148e41a3912a98f GIT binary patch literal 154 zcmV;L0A>Gp0ZYosPf{?nG-F`?%*z!g;2e|800oRd+5w1*S%5?e14FO|NW@PANHCxg z#koK+{fzwFRQ;61vdk3yl&r+O^nBgi%=DtflFa-(-JHz4lGGyolGNgoVlWwBP?VpQ znp_f}mRV6!T9gVEP0lYW0*OLpQIzV($7kkcmc+;F6;zgR0By9%%}*)KNwovHs~CtG I0OqwfXBq@d;Q#;t literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 new file mode 100644 index 0000000000000000000000000000000000000000..711223894375fe1186ac5bfffdc48fb1fa1e65cc GIT binary patch literal 15 Wcmb4WH2!R0)>>U#Ju$U_=2MRtkmQZ2A|Kh?`0)rYP?Mzvf8gy Oes;|>C<*|P3K6ZrD;Y}w literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/f1/22245e6a3ce63b99e0beeb8403031edd08ed50 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/f1/22245e6a3ce63b99e0beeb8403031edd08ed50 new file mode 100644 index 0000000..343ce14 --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/git/objects/f1/22245e6a3ce63b99e0beeb8403031edd08ed50 @@ -0,0 +1 @@ +x¥ŽAj1 E»ö)´�GÙPJ½Cײd§&u\ŒÓ^¿Sr„,߇÷yÒ[«®/sä ™£Å >lV•5�¤•È&ÝF&E1ß<òm·‚kà#¹%;õ‹_88Ï>•D…4a2|ŸŸ}À;ÿT…�žF—+¼ê?xº4®_Géí �ƒ]c€ƒ]¬5ûº‡ÎüÄ…9«B¿B«—Á³ö›ùÖ‚Nˆ \ No newline at end of file diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/f1/ff8f0c6cca456e2e132263fd70ac9593ac1b53 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/f1/ff8f0c6cca456e2e132263fd70ac9593ac1b53 new file mode 100644 index 0000000000000000000000000000000000000000..19affa31b60b919aca4e6e4894f76c0be31cf5b1 GIT binary patch literal 241 zcmV5HDfR|FfcPQQHYPv%*!l^kJl@xWOz3B(d~awt%+~Gqs};|jN#$`^*^BI ztL=@oye^j^_xEb?^Lphk55~U&K7YqQ z?_~f8fQ@4YNEZAI*f>e&S+KJ}Gce4-aOu?K9MC*`%ZzV(8E95Xo(Gbf2p51Z16hJ^ zS$Sv3Ik1aBFMz!QeYCm?Bo727P^SQ-2;>5g6(C4ogMI<*H6Y&sSqE|v$R!|`fm{J{ z75d9yBmElK>%f+PTnBOk%7{pALK)%7EhsaL;Wm)(f!qP|1N2esM<^2wsMP@;8@wZ}v$ zZn-32p~i(9i?QTmE#U~IjghzY?QOk`>hBRbh+?X-5RC+`U{R>yEd~tDGM_#}FKBTf z#EAb~Dv`+JdTM0if)@oP8kQttNkk*&@zTWaQi?AIRO=S^+4QOj5TZqr8UPRUT=GBwf=e#rn6f_w5*ur`jk!VOJ9j2$v+8(pHSVo<9M&+Z~ ztg0HX*7huM9*M^8t|J$GV*#qF#INe?@G!0@Mts^$`uyqt6OQQ@Y)!#8XW}RFz5rkD z2Y-25ewynAIuo9_gnFm>D)`oJyVh!2{0@qoNa+#pGabtv_d{(te>OGl^xOmL5LdWe zms4k&CVzVd)CLP#kOXxa_Qha|#eX{kMA~q>W0z+bzn=l4 znFKUu-f56?2tvcHgo_-`I_(OV68kV)++N(OB zjCu|EEo@=wQr&3obc`L-skEwQieGD(j@`n7lu>su=-T$1=5$fte%@3mkes%iM&3r- z73t*$s=#dE0WM2}D4-?c9x_r&-ve6#>*L1*7Vnmi$)j;eb`@9SBK|~UtzP*6fc@Kwtb|tftdz!tM&*$=495N@b!qWV@kjv+C fnPqk5vMJ|EKGj+)AO~ra|LS?fORxODGY~H}PsF2j literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/f6/a170bb234332d6ecef3b4348f2da0e758c59a7 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/f6/a170bb234332d6ecef3b4348f2da0e758c59a7 new file mode 100644 index 0000000000000000000000000000000000000000..ea64db9d016d3f9e768b06c72e37464fe6702881 GIT binary patch literal 149 zcmV;G0BZku0V^p=O;s>7v0yMXFfcPQQHYPv%*!l^kJl@xWOz3B(dKnZiHol9WDrKe=5i@RG&gjPn^^sItx%qV6xumVnPuymE2USvDoSq3XWmVc5+1HQO#b2It<5_&}-|1~BQzifa%y?A%PfhH*DI)GcsBRZ>`fQ1IeT|&t}Bna oap*};@I*{y$qY?<%pidNdN!< literal 0 HcmV?d00001 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/refs/heads/master b/tests/test_project_fixtures/test_non_root_git_project/git/refs/heads/master new file mode 100644 index 0000000..7ceae76 --- /dev/null +++ b/tests/test_project_fixtures/test_non_root_git_project/git/refs/heads/master @@ -0,0 +1 @@ +f122245e6a3ce63b99e0beeb8403031edd08ed50