Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions write-yourself-a-git.org
Original file line number Diff line number Diff line change
Expand Up @@ -3277,8 +3277,8 @@ index stores: creation/modification time, and so on)
clean_paths = set()
for path in paths:
abspath = os.path.abspath(path)
if not (abspath.startswith(worktree) and os.path.isfile(abspath)):
raise Exception(f"Not a file, or outside the worktree: {paths}")
if not os.path.isfile(abspath):
raise Exception(f"Not a file")
relpath = os.path.relpath(abspath, repo.worktree)
clean_paths.add((abspath, relpath))

Expand Down