mirror of
https://gerrit.googlesource.com/git-repo
synced 2025-06-30 20:17:08 +00:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
619a2b5887 | |||
ab15e42fa4 |
@ -2252,6 +2252,9 @@ class Project(object):
|
||||
spec.append('tag')
|
||||
spec.append(tag_name)
|
||||
|
||||
if self.manifest.IsMirror and not current_branch_only:
|
||||
branch = None
|
||||
else:
|
||||
branch = self.revisionExpr
|
||||
if (not self.manifest.IsMirror and is_sha1 and depth
|
||||
and git_require((1, 8, 3))):
|
||||
|
@ -99,7 +99,7 @@ to update the working directory files.
|
||||
cbr_opts = ['--current-branch']
|
||||
# The gitc-init subcommand allocates -c itself, but a lot of init users
|
||||
# want -c, so try to satisfy both as best we can.
|
||||
if gitc_init:
|
||||
if not gitc_init:
|
||||
cbr_opts += ['-c']
|
||||
g.add_option(*cbr_opts,
|
||||
dest='current_branch_only', action='store_true',
|
||||
|
Reference in New Issue
Block a user