diff options
author | Gavin Mak <gavinmak@google.com> | 2025-08-14 16:28:12 -0700 |
---|---|---|
committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2025-08-14 16:35:26 -0700 |
commit | 38d2fe11b9df521727fcca23c9dac086ce8378d3 (patch) | |
tree | 87b6d78abd84d64818c461682386a13f355a9b48 | |
parent | 854fe440f253bd9dae68be93da20956c013aad23 (diff) | |
download | git-repo-stable.tar.gz |
This reverts commit d9cc0a15265299b6dcfc1d65f192fd14cfb17b02.
Reason for revert: AttributeError: 'Project' object has no attribute 'use_superproject'
Bug: b/427093249
Change-Id: I57b285ab21f58b040e68ec14b85425f43f0abcca
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/498641
Reviewed-by: Mike Frysinger <vapier@google.com>
Tested-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Gavin Mak <gavinmak@google.com>
-rw-r--r-- | project.py | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -2411,9 +2411,7 @@ class Project: | |||
2411 | # throws an error. | 2411 | # throws an error. |
2412 | revs = [f"{self.revisionExpr}^0"] | 2412 | revs = [f"{self.revisionExpr}^0"] |
2413 | upstream_rev = None | 2413 | upstream_rev = None |
2414 | 2414 | if self.upstream: | |
2415 | # Only check upstream when using superproject. | ||
2416 | if self.upstream and self.use_superproject: | ||
2417 | upstream_rev = self.GetRemote().ToLocal(self.upstream) | 2415 | upstream_rev = self.GetRemote().ToLocal(self.upstream) |
2418 | revs.append(upstream_rev) | 2416 | revs.append(upstream_rev) |
2419 | 2417 | ||
@@ -2425,9 +2423,7 @@ class Project: | |||
2425 | log_as_error=False, | 2423 | log_as_error=False, |
2426 | ) | 2424 | ) |
2427 | 2425 | ||
2428 | # Only verify upstream relationship for superproject scenarios | 2426 | if self.upstream: |
2429 | # without affecting plain usage. | ||
2430 | if self.upstream and self.use_superproject: | ||
2431 | self.bare_git.merge_base( | 2427 | self.bare_git.merge_base( |
2432 | "--is-ancestor", | 2428 | "--is-ancestor", |
2433 | self.revisionExpr, | 2429 | self.revisionExpr, |