summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2023-10-20 23:32:02 +0545
committerLUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-10-21 00:55:33 +0000
commit034950b9eebacd6598ea518a0b254845bc806ab6 (patch)
treeb035f894f27e7f37118578a0ebcfca5fcfb7ff59 /project.py
parent0bcffd865616a0a14b7e9f2b03d77da2444d3025 (diff)
downloadgit-repo-034950b9eebacd6598ea518a0b254845bc806ab6.tar.gz
cleanup: delete redundant "r" open mode
Change-Id: I86ebb8c5a9dc3752e8a25f4b11b64c5be3a6429e Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/390375 Tested-by: Mike Frysinger <vapier@google.com> Commit-Queue: Mike Frysinger <vapier@google.com> Reviewed-by: Aravind Vasudevan <aravindvasudev@google.com>
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:")