diff options
author | LaMont Jones <lamontjones@google.com> | 2022-11-08 00:54:56 +0000 |
---|---|---|
committer | LaMont Jones <lamontjones@google.com> | 2022-11-08 00:54:56 +0000 |
commit | 5fb9c6a5b35220e27b3acd5861318584588cd0d8 (patch) | |
tree | d3d3a7d6d021e1547d9f22875aea57a717540f92 /project.py | |
parent | 859d3d958057e35b618e8cca209a85317d49a974 (diff) | |
download | git-repo-5fb9c6a5b35220e27b3acd5861318584588cd0d8.tar.gz |
v2.29.7: Revert back to v2.29.5v2.29.7
This change reverts stable to v2.29.5, to fix clients that received
v2.29.6, and keep future updates simpler.
Change-Id: I2f5c52c466b7321665c9699ccdbf98f928483fee
Diffstat (limited to 'project.py')
-rw-r--r-- | project.py | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -41,7 +41,7 @@ from error import ManifestInvalidRevisionError, ManifestInvalidPathError | |||
41 | from error import NoManifestException, ManifestParseError | 41 | from error import NoManifestException, ManifestParseError |
42 | import platform_utils | 42 | import platform_utils |
43 | import progress | 43 | import progress |
44 | from repo_trace import Trace | 44 | from repo_trace import IsTrace, Trace |
45 | 45 | ||
46 | from git_refs import GitRefs, HEAD, R_HEADS, R_TAGS, R_PUB, R_M, R_WORKTREE_M | 46 | from git_refs import GitRefs, HEAD, R_HEADS, R_TAGS, R_PUB, R_M, R_WORKTREE_M |
47 | 47 | ||
@@ -59,7 +59,7 @@ MAXIMUM_RETRY_SLEEP_SEC = 3600.0 | |||
59 | # +-10% random jitter is added to each Fetches retry sleep duration. | 59 | # +-10% random jitter is added to each Fetches retry sleep duration. |
60 | RETRY_JITTER_PERCENT = 0.1 | 60 | RETRY_JITTER_PERCENT = 0.1 |
61 | 61 | ||
62 | # Whether to use alternates. Switching back and forth is *NOT* supported. | 62 | # Whether to use alternates. |
63 | # TODO(vapier): Remove knob once behavior is verified. | 63 | # TODO(vapier): Remove knob once behavior is verified. |
64 | _ALTERNATES = os.environ.get('REPO_USE_ALTERNATES') == '1' | 64 | _ALTERNATES = os.environ.get('REPO_USE_ALTERNATES') == '1' |
65 | 65 | ||
@@ -2416,16 +2416,16 @@ class Project(object): | |||
2416 | srcUrl = 'http' + srcUrl[len('persistent-http'):] | 2416 | srcUrl = 'http' + srcUrl[len('persistent-http'):] |
2417 | cmd += [srcUrl] | 2417 | cmd += [srcUrl] |
2418 | 2418 | ||
2419 | proc = None | 2419 | if IsTrace(): |
2420 | with Trace('Fetching bundle: %s', ' '.join(cmd)): | 2420 | Trace('%s', ' '.join(cmd)) |
2421 | if verbose: | 2421 | if verbose: |
2422 | print('%s: Downloading bundle: %s' % (self.name, srcUrl)) | 2422 | print('%s: Downloading bundle: %s' % (self.name, srcUrl)) |
2423 | stdout = None if verbose else subprocess.PIPE | 2423 | stdout = None if verbose else subprocess.PIPE |
2424 | stderr = None if verbose else subprocess.STDOUT | 2424 | stderr = None if verbose else subprocess.STDOUT |
2425 | try: | 2425 | try: |
2426 | proc = subprocess.Popen(cmd, stdout=stdout, stderr=stderr) | 2426 | proc = subprocess.Popen(cmd, stdout=stdout, stderr=stderr) |
2427 | except OSError: | 2427 | except OSError: |
2428 | return False | 2428 | return False |
2429 | 2429 | ||
2430 | (output, _) = proc.communicate() | 2430 | (output, _) = proc.communicate() |
2431 | curlret = proc.returncode | 2431 | curlret = proc.returncode |