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,7 +2252,10 @@ class Project(object):
|
|||||||
spec.append('tag')
|
spec.append('tag')
|
||||||
spec.append(tag_name)
|
spec.append(tag_name)
|
||||||
|
|
||||||
branch = self.revisionExpr
|
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
|
if (not self.manifest.IsMirror and is_sha1 and depth
|
||||||
and git_require((1, 8, 3))):
|
and git_require((1, 8, 3))):
|
||||||
# Shallow checkout of a specific commit, fetch from that commit and not
|
# Shallow checkout of a specific commit, fetch from that commit and not
|
||||||
|
@ -99,7 +99,7 @@ to update the working directory files.
|
|||||||
cbr_opts = ['--current-branch']
|
cbr_opts = ['--current-branch']
|
||||||
# The gitc-init subcommand allocates -c itself, but a lot of init users
|
# The gitc-init subcommand allocates -c itself, but a lot of init users
|
||||||
# want -c, so try to satisfy both as best we can.
|
# want -c, so try to satisfy both as best we can.
|
||||||
if gitc_init:
|
if not gitc_init:
|
||||||
cbr_opts += ['-c']
|
cbr_opts += ['-c']
|
||||||
g.add_option(*cbr_opts,
|
g.add_option(*cbr_opts,
|
||||||
dest='current_branch_only', action='store_true',
|
dest='current_branch_only', action='store_true',
|
||||||
|
Reference in New Issue
Block a user