Merge "Add git fetch to updating script" into rvc-dev am: e50a9aef30

Change-Id: I24f49af04b1a335439b658e6a290130b6afa38a9
diff --git a/update.py b/update.py
index 86c94b6..e435ced 100755
--- a/update.py
+++ b/update.py
@@ -60,8 +60,9 @@
   shutil.rmtree(TEMPORARY_TREE_CHECKOUT_DIR, ignore_errors=True)
 atexit.register(cleanup)
 
+# Update remote branches.
+run("git fetch --all --tags")
 if args.tag:
-  run("git fetch --all --tags")
   # Get the commit SHA associated to the tag.
   commit = run(f"git rev-list -n 1 {args.tag}")
 else: # a commit SHA was provided.