Loading build/tools/repopick.py +20 −21 Original line number Diff line number Diff line Loading @@ -641,12 +641,11 @@ def do_git_fetch_pull(args, item): if not args.quiet: print(cmd) result = subprocess.call(cmd, cwd=project_path) FETCH_HEAD = "{0}/.git/FETCH_HEAD".format(project_path) if result != 0 and os.stat(FETCH_HEAD).st_size != 0: print("ERROR: git command failed") sys.exit(result) # Check if it worked if args.gerrit != DEFAULT_GERRIT or os.stat(FETCH_HEAD).st_size == 0: if result == 0 or commit_exists(project_path, item["revision"]): return print("ERROR: git command failed") # If not using the default gerrit or github failed, fetch from gerrit. if args.verbose: if args.gerrit == DEFAULT_GERRIT: Loading @@ -660,7 +659,7 @@ def do_git_fetch_pull(args, item): if not args.quiet: print(cmd) result = subprocess.call(cmd, cwd=project_path) if result != 0: if result != 0 and not commit_exists(project_path, item["revision"]): print("ERROR: git command failed") sys.exit(result) Loading Loading
build/tools/repopick.py +20 −21 Original line number Diff line number Diff line Loading @@ -641,12 +641,11 @@ def do_git_fetch_pull(args, item): if not args.quiet: print(cmd) result = subprocess.call(cmd, cwd=project_path) FETCH_HEAD = "{0}/.git/FETCH_HEAD".format(project_path) if result != 0 and os.stat(FETCH_HEAD).st_size != 0: print("ERROR: git command failed") sys.exit(result) # Check if it worked if args.gerrit != DEFAULT_GERRIT or os.stat(FETCH_HEAD).st_size == 0: if result == 0 or commit_exists(project_path, item["revision"]): return print("ERROR: git command failed") # If not using the default gerrit or github failed, fetch from gerrit. if args.verbose: if args.gerrit == DEFAULT_GERRIT: Loading @@ -660,7 +659,7 @@ def do_git_fetch_pull(args, item): if not args.quiet: print(cmd) result = subprocess.call(cmd, cwd=project_path) if result != 0: if result != 0 and not commit_exists(project_path, item["revision"]): print("ERROR: git command failed") sys.exit(result) Loading