mirror of
https://gerrit.googlesource.com/git-repo
synced 2025-07-02 20:17:19 +00:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
d92076d930 | |||
aeb2eee9d3 | |||
45d1c372a7 | |||
19607b2817 |
@ -1989,7 +1989,7 @@ class Project(object):
|
|||||||
gitmodules_lines = []
|
gitmodules_lines = []
|
||||||
fd, temp_gitmodules_path = tempfile.mkstemp()
|
fd, temp_gitmodules_path = tempfile.mkstemp()
|
||||||
try:
|
try:
|
||||||
os.write(fd, p.stdout)
|
os.write(fd, p.stdout.encode('utf-8'))
|
||||||
os.close(fd)
|
os.close(fd)
|
||||||
cmd = ['config', '--file', temp_gitmodules_path, '--list']
|
cmd = ['config', '--file', temp_gitmodules_path, '--list']
|
||||||
p = GitCommand(None, cmd, capture_stdout=True, capture_stderr=True,
|
p = GitCommand(None, cmd, capture_stdout=True, capture_stderr=True,
|
||||||
@ -2398,7 +2398,7 @@ class Project(object):
|
|||||||
platform_utils.remove(tmpPath)
|
platform_utils.remove(tmpPath)
|
||||||
with GetUrlCookieFile(srcUrl, quiet) as (cookiefile, proxy):
|
with GetUrlCookieFile(srcUrl, quiet) as (cookiefile, proxy):
|
||||||
if cookiefile:
|
if cookiefile:
|
||||||
cmd += ['--cookie', cookiefile, '--cookie-jar', cookiefile]
|
cmd += ['--cookie', cookiefile]
|
||||||
if proxy:
|
if proxy:
|
||||||
cmd += ['--proxy', proxy]
|
cmd += ['--proxy', proxy]
|
||||||
elif 'http_proxy' in os.environ and 'darwin' == sys.platform:
|
elif 'http_proxy' in os.environ and 'darwin' == sys.platform:
|
||||||
|
10
repo
10
repo
@ -16,7 +16,9 @@ import os
|
|||||||
REPO_URL = os.environ.get('REPO_URL', None)
|
REPO_URL = os.environ.get('REPO_URL', None)
|
||||||
if not REPO_URL:
|
if not REPO_URL:
|
||||||
REPO_URL = 'https://gerrit.googlesource.com/git-repo'
|
REPO_URL = 'https://gerrit.googlesource.com/git-repo'
|
||||||
REPO_REV = 'repo-1'
|
REPO_REV = os.environ.get('REPO_REV')
|
||||||
|
if not REPO_REV:
|
||||||
|
REPO_REV = 'repo-1'
|
||||||
|
|
||||||
# Copyright (C) 2008 Google Inc.
|
# Copyright (C) 2008 Google Inc.
|
||||||
#
|
#
|
||||||
@ -33,7 +35,7 @@ REPO_REV = 'repo-1'
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
# increment this whenever we make important changes to this script
|
# increment this whenever we make important changes to this script
|
||||||
VERSION = (1, 26)
|
VERSION = (1, 27)
|
||||||
|
|
||||||
# increment this if the MAINTAINER_KEYS block is modified
|
# increment this if the MAINTAINER_KEYS block is modified
|
||||||
KEYRING_VERSION = (1, 2)
|
KEYRING_VERSION = (1, 2)
|
||||||
@ -235,10 +237,10 @@ group.add_option('--no-tags',
|
|||||||
group = init_optparse.add_option_group('repo Version options')
|
group = init_optparse.add_option_group('repo Version options')
|
||||||
group.add_option('--repo-url',
|
group.add_option('--repo-url',
|
||||||
dest='repo_url',
|
dest='repo_url',
|
||||||
help='repo repository location', metavar='URL')
|
help='repo repository location ($REPO_URL)', metavar='URL')
|
||||||
group.add_option('--repo-branch',
|
group.add_option('--repo-branch',
|
||||||
dest='repo_branch',
|
dest='repo_branch',
|
||||||
help='repo branch or revision', metavar='REVISION')
|
help='repo branch or revision ($REPO_REV)', metavar='REVISION')
|
||||||
group.add_option('--no-repo-verify',
|
group.add_option('--no-repo-verify',
|
||||||
dest='no_repo_verify', action='store_true',
|
dest='no_repo_verify', action='store_true',
|
||||||
help='do not verify repo source code')
|
help='do not verify repo source code')
|
||||||
|
Reference in New Issue
Block a user