summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tool/lib/vcs.rb12
1 files changed, 1 insertions, 11 deletions
diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb
index dc7a86a58a..4684b57b28 100644
--- a/tool/lib/vcs.rb
+++ b/tool/lib/vcs.rb
@@ -540,17 +540,7 @@ class VCS
end
def export(revision, url, dir, keep_temp = false)
- ret = system(COMMAND, "clone", "-s", (@srcdir || '.').to_s, "-b", url, dir)
- ret
- rescue => e
- if "master" == url.to_str && e.message == "Command failed with exit 128: git"
- warn "retry trunk instead of master", uplevel: 0
- STDERR.puts "existing branches:"
- system(COMMAND, "branch", "-a", 1 => 2)
- url.to_str.replace("trunk")
- retry
- end
- raise
+ system(COMMAND, "clone", "-s", (@srcdir || '.').to_s, "-b", url, dir)
end
def after_export(dir)