diff options
-rw-r--r-- | subcmds/sync.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py index 978b3beb..49874c44 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
@@ -1999,6 +1999,8 @@ def _PostRepoFetch(rp, repo_verify=True, verbose=False): | |||
1999 | # We also have to make sure this will switch to an older commit if | 1999 | # We also have to make sure this will switch to an older commit if |
2000 | # that's the latest tag in order to support release rollback. | 2000 | # that's the latest tag in order to support release rollback. |
2001 | try: | 2001 | try: |
2002 | # Refresh index since reset --keep won't do it. | ||
2003 | rp.work_git.update_index("-q", "--refresh") | ||
2002 | rp.work_git.reset("--keep", new_rev) | 2004 | rp.work_git.reset("--keep", new_rev) |
2003 | except GitError as e: | 2005 | except GitError as e: |
2004 | raise RepoUnhandledExceptionError(e) | 2006 | raise RepoUnhandledExceptionError(e) |