зеркало из https://github.com/github/ruby.git
Revert workaround
This commit is contained in:
Родитель
5decf66ab3
Коммит
1b03d2d76b
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче