r168044 - trunk/tools/deps2git

2 views
Skip to first unread message

sza...@google.com

unread,
Nov 15, 2012, 5:03:36 PM11/15/12
to chromium...@chromium.org
Author: sza...@google.com
Date: Thu Nov 15 14:03:36 2012
New Revision: 168044

Log:
Switch upstream to git-on-borg.
Review URL: https://codereview.chromium.org/11312251

Modified:
trunk/tools/deps2git/deps2git.py
trunk/tools/deps2git/git_tools.py
trunk/tools/deps2git/svn_to_git_public.py

Modified: trunk/tools/deps2git/deps2git.py
==============================================================================
--- trunk/tools/deps2git/deps2git.py (original)
+++ trunk/tools/deps2git/deps2git.py Thu Nov 15 14:03:36 2012
@@ -46,7 +46,7 @@
if not os.path.exists(git_repo_path):
git_tools.Clone(git_url, git_repo_path, mirror)
else:
- git_tools.Fetch(git_repo_path, mirror)
+ git_tools.Fetch(git_repo_path, git_url, mirror)
return git_tools.Search(git_repo_path, svn_rev, mirror)



Modified: trunk/tools/deps2git/git_tools.py
==============================================================================
--- trunk/tools/deps2git/git_tools.py (original)
+++ trunk/tools/deps2git/git_tools.py Thu Nov 15 14:03:36 2012
@@ -78,8 +78,10 @@
return Git(git_repo, cmd, is_mirror)


-def Fetch(git_repo, is_mirror):
+def Fetch(git_repo, git_url, is_mirror):
"""Fetch the latest objects for a given git repository."""
+ # Always update the upstream url
+ Git(git_repo, 'config remote.origin.url %s' % git_url)
Git(git_repo, 'fetch origin +refs/heads/master', is_mirror)



Modified: trunk/tools/deps2git/svn_to_git_public.py
==============================================================================
--- trunk/tools/deps2git/svn_to_git_public.py (original)
+++ trunk/tools/deps2git/svn_to_git_public.py Thu Nov 15 14:03:36 2012
@@ -8,7 +8,7 @@
import re


-GIT_HOST = 'http://git.chromium.org/'
+GIT_HOST = 'https://chromium.googlesource.com/'


# Used by deps2git.ConvertDepsToGit() as overrides for SVN DEPS. Each entry
Reply all
Reply to author
Forward
0 new messages