summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
Diffstat (limited to 'project.py')
-rw-r--r--project.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/project.py b/project.py
index 93d9dcba..5c9f31cf 100644
--- a/project.py
+++ b/project.py
@@ -3227,7 +3227,7 @@ class Project:
3227 # Rewrite the internal state files to use relative paths between the 3227 # Rewrite the internal state files to use relative paths between the
3228 # checkouts & worktrees. 3228 # checkouts & worktrees.
3229 dotgit = os.path.join(self.worktree, ".git") 3229 dotgit = os.path.join(self.worktree, ".git")
3230 with open(dotgit, "r") as fp: 3230 with open(dotgit) as fp:
3231 # Figure out the checkout->worktree path. 3231 # Figure out the checkout->worktree path.
3232 setting = fp.read() 3232 setting = fp.read()
3233 assert setting.startswith("gitdir:") 3233 assert setting.startswith("gitdir:")