diff options
Diffstat (limited to 'subcmds/sync.py')
-rw-r--r-- | subcmds/sync.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py index c61c3bb4..9c9a3b78 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
@@ -207,17 +207,14 @@ def _VerifyTag(project): | |||
207 | warning: Cannot automatically authenticate repo.""" | 207 | warning: Cannot automatically authenticate repo.""" |
208 | return True | 208 | return True |
209 | 209 | ||
210 | remote = project.GetRemote(project.remote.name) | ||
211 | ref = remote.ToLocal(project.revision) | ||
212 | |||
213 | try: | 210 | try: |
214 | cur = project.bare_git.describe(ref) | 211 | cur = project.bare_git.describe(project.GetRevisionId()) |
215 | except GitError: | 212 | except GitError: |
216 | cur = None | 213 | cur = None |
217 | 214 | ||
218 | if not cur \ | 215 | if not cur \ |
219 | or re.compile(r'^.*-[0-9]{1,}-g[0-9a-f]{1,}$').match(cur): | 216 | or re.compile(r'^.*-[0-9]{1,}-g[0-9a-f]{1,}$').match(cur): |
220 | rev = project.revision | 217 | rev = project.revisionExpr |
221 | if rev.startswith(R_HEADS): | 218 | if rev.startswith(R_HEADS): |
222 | rev = rev[len(R_HEADS):] | 219 | rev = rev[len(R_HEADS):] |
223 | 220 | ||