Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: ensure_dependencies.py

Issue 6490407919681536: Issue 1366 - ensure_dependencies.py checkout fails for master revision (Closed)
Patch Set: Created Sept. 11, 2014, 7:34 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ensure_dependencies.py
===================================================================
--- a/ensure_dependencies.py
+++ b/ensure_dependencies.py
@@ -59,17 +59,17 @@ class Mercurial():
class Git():
def istype(self, repodir):
return os.path.exists(os.path.join(repodir, ".git"))
def clone(self, source, target):
source = source.rstrip("/")
if not source.endswith(".git"):
source += ".git"
- subprocess.check_call(["git", "clone", "--quiet", "--no-checkout", source, target])
+ subprocess.check_call(["git", "clone", "--quiet", source, target])
def get_revision_id(self, repo, rev="HEAD"):
command = ["git", "-C", repo, "rev-parse", "--revs-only", rev]
return subprocess.check_output(command).strip()
def pull(self, repo):
subprocess.check_call(["git", "-C", repo, "fetch", "--quiet", "--all", "--tags"])
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld