Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
git-repo
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux-tools
git-repo
Commits
0582a44d
Commit
0582a44d
authored
Mar 19, 2013
by
Matthias Putz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repo cmd adaption
parent
5d50e056
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
repo
repo
+12
-7
No files found.
repo
View file @
0582a44d
#!/usr/bin/env python
import
sys
import
portable
if
sys
.
version_info
[
0
]
<
3
:
print
(
'git-repo is written for python3, your version is
%
s, please upgrade from www.python.org.'
%
sys
.
version
)
exit
(
0
)
## repo default configuration
##
from
__future__
import
print_function
REPO_URL
=
'https://gerrit.googlesource.com/git-repo'
REPO_URL
=
'ssh://gerrit/Tools/git-repo'
REPO_REV
=
'stable'
# Copyright (C) 2008 Google Inc.
...
...
@@ -21,7 +27,7 @@ REPO_REV = 'stable'
# limitations under the License.
# increment this whenever we make important changes to this script
VERSION
=
(
1
,
19
)
VERSION
=
(
1
,
19
,
1
)
# increment this if the MAINTAINER_KEYS block is modified
KEYRING_VERSION
=
(
1
,
1
)
...
...
@@ -115,7 +121,6 @@ import os
import
re
import
stat
import
subprocess
import
sys
import
urllib.request
import
urllib.error
...
...
@@ -257,7 +262,7 @@ def _CheckGitVersion():
file
=
sys
.
stderr
)
raise
CloneFailure
()
ver_str
=
p
roc
.
stdout
.
read
(
)
.
strip
()
ver_str
=
p
ortable
.
stream2str
(
proc
.
stdout
.
read
()
)
.
strip
()
proc
.
stdout
.
close
()
proc
.
wait
()
...
...
@@ -490,7 +495,7 @@ def _Verify(cwd, branch, quiet):
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
,
cwd
=
cwd
)
cur
=
p
roc
.
stdout
.
read
(
)
.
strip
()
cur
=
p
ortable
.
stream2str
(
proc
.
stdout
.
read
()
)
.
strip
()
proc
.
stdout
.
close
()
proc
.
stderr
.
read
()
...
...
@@ -663,7 +668,7 @@ def _SetDefaultsTo(gitdir):
'HEAD'
],
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
)
REPO_REV
=
p
roc
.
stdout
.
read
(
)
.
strip
()
REPO_REV
=
p
ortable
.
stream2str
(
proc
.
stdout
.
read
()
)
.
strip
()
proc
.
stdout
.
close
()
proc
.
stderr
.
read
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment