Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
开源群组
repo
Commits
ecf0a6c9
Commit
ecf0a6c9
authored
9 years ago
by
Dan Willemsen
Committed by
Gerrit Code Review
9 years ago
Browse files
Options
Download
Plain Diff
Merge "GITC: Fix 'repo start <branch> <repo>/<subdir>'"
parents
0b4cb325
04197a51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
subcmds/start.py
subcmds/start.py
+12
-5
No files found.
subcmds/start.py
View file @
ecf0a6c9
...
...
@@ -57,10 +57,15 @@ revision specified in the manifest.
print
(
"error: at least one project must be specified"
,
file
=
sys
.
stderr
)
sys
.
exit
(
1
)
all_projects
=
self
.
GetProjects
(
projects
,
missing_ok
=
bool
(
self
.
gitc_manifest
))
# This must happen after we find all_projects, since GetProjects may need
# the local directory, which will disappear once we save the GITC manifest.
if
self
.
gitc_manifest
:
all
_projects
=
self
.
GetProjects
(
projects
,
manifest
=
self
.
gitc_manifest
,
missing_ok
=
True
)
for
project
in
all
_projects
:
gitc
_projects
=
self
.
GetProjects
(
projects
,
manifest
=
self
.
gitc_manifest
,
missing_ok
=
True
)
for
project
in
gitc
_projects
:
if
project
.
old_revision
:
project
.
already_synced
=
True
else
:
...
...
@@ -70,8 +75,10 @@ revision specified in the manifest.
# Save the GITC manifest.
gitc_utils
.
save_manifest
(
self
.
gitc_manifest
)
all_projects
=
self
.
GetProjects
(
projects
,
missing_ok
=
bool
(
self
.
gitc_manifest
))
# Make sure we have a valid CWD
if
not
os
.
path
.
exists
(
os
.
getcwd
()):
os
.
chdir
(
self
.
manifest
.
topdir
)
pm
=
Progress
(
'Starting %s'
%
nb
,
len
(
all_projects
))
for
project
in
all_projects
:
pm
.
update
()
...
...
This diff is collapsed.
Click to expand it.
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