Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(668)

Unified Diff: deps2git/git_tools.py

Issue 11312251: Switch upstream to git-on-borg. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « deps2git/deps2git.py ('k') | deps2git/svn_to_git_public.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: deps2git/git_tools.py
===================================================================
--- deps2git/git_tools.py (revision 167757)
+++ deps2git/git_tools.py (working copy)
@@ -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)
« no previous file with comments | « deps2git/deps2git.py ('k') | deps2git/svn_to_git_public.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698