Home | History | Annotate | Download | only in hooks

Lines Matching full:path

8 _TOP_PATH = os.path.abspath(os.path.join(
9 os.path.dirname(__file__), '..'))
17 full_src_path = os.path.join(_TOP_PATH, self.src_path)
18 full_dst_path = os.path.join(_TOP_PATH, self.dst_path)
20 full_dst_path_dirname = os.path.dirname(full_dst_path)
22 src_path_rel = os.path.relpath(full_src_path, full_dst_path_dirname)
24 assert os.path.exists(full_src_path)
25 if not os.path.exists(full_dst_path_dirname):
31 if os.path.exists(full_dst_path) or os.path.islink(full_dst_path):
32 if not os.path.islink(full_dst_path):
35 os.path.basename(self.src_path), full_dst_path))
45 os.path.basename(self.src_path),
46 os.path.relpath(full_dst_path)))
57 old_precommit = os.path.join(_TOP_PATH, '.git', 'hooks', 'pre-commit')
58 old_precommit_target = os.path.join(_TOP_PATH, 'hooks', 'pre_commit')
59 if (os.path.islink(old_precommit) and
60 os.path.abspath(os.readlink(old_precommit)) == old_precommit_target):
64 links.append(Link(os.path.join('.git', 'hooks', 'pre-push'),
65 os.path.join('hooks/pre_push')))