---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
/tmp/ipykernel_2882/4271528604.py in <cell line: 0>()
----> 1 git_checkout_branch(REPO_DIR, "main")
2
3 # 施行日でソート
4 sorted_dates = sorted(commits_map.keys())
5
/tmp/ipykernel_2882/1054130389.py in git_checkout_branch(repo_dir, branch_name, orphan)
41 def git_checkout_branch(repo_dir, branch_name, orphan=False):
42 """ブランチを切り替え(存在しなければ作成)"""
---> 43 result = subprocess.run(
44 ["git", "branch", "--list", branch_name],
45 cwd=repo_dir, capture_output=True, text=True
/usr/lib/python3.13/subprocess.py in run(input, capture_output, timeout, check, *popenargs, **kwargs)
553 kwargs['stderr'] = PIPE
554
--> 555 with Popen(*popenargs, **kwargs) as process:
556 try:
557 stdout, stderr = process.communicate(input, timeout=timeout)
/usr/lib/python3.13/subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, user, group, extra_groups, encoding, errors, text, umask, pipesize, process_group)
1038 encoding=encoding, errors=errors)
1039
-> 1040 self._execute_child(args, executable, preexec_fn, close_fds,
1041 pass_fds, cwd, env,
1042 startupinfo, creationflags, shell,
/usr/lib/python3.13/subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, gid, gids, uid, umask, start_new_session, process_group)
1990 err_msg = os.strerror(errno_num)
1991 if err_filename is not None:
-> 1992 raise child_exception_type(errno_num, err_msg, err_filename)
1993 else:
1994 raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: PosixPath('laws_repo')