diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2023-10-20 23:32:02 +0545 |
---|---|---|
committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-10-21 00:55:33 +0000 |
commit | 034950b9eebacd6598ea518a0b254845bc806ab6 (patch) | |
tree | b035f894f27e7f37118578a0ebcfca5fcfb7ff59 /project.py | |
parent | 0bcffd865616a0a14b7e9f2b03d77da2444d3025 (diff) | |
download | git-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.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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:") |