diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-09-14 23:47:33 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-09-14 23:50:45 +0900 |
commit | e9c7fc7ca9bc15a9f84bdc356f7b6fac12988ccb (patch) | |
tree | 19f9b8a6c138884d25b5e661f658b69e262e8e4e /tool/lib/vcs.rb | |
parent | 6d2dcf96323189402ea551ed86de6c2766659593 (diff) | |
download | ruby-e9c7fc7ca9bc15a9f84bdc356f7b6fac12988ccb.tar.gz |
Continue to export even if no notes/commits
Just exporting may not imply exporting ChangeLog which needs
notes/commits. [Bug #16167]
Diffstat (limited to 'tool/lib/vcs.rb')
-rw-r--r-- | tool/lib/vcs.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb index 85a4827fe2..780ae346e1 100644 --- a/tool/lib/vcs.rb +++ b/tool/lib/vcs.rb @@ -584,7 +584,9 @@ class VCS def export(revision, url, dir, keep_temp = false) system(COMMAND, "clone", "-c", "advice.detachedHead=false", "-s", (@srcdir || '.').to_s, "-b", url, dir) or return - system(COMMAND, "fetch", "origin", "+refs/notes/commits:refs/notes/commits", chdir: dir) or return + unless system(COMMAND, "fetch", "origin", "+refs/notes/commits:refs/notes/commits", chdir: dir, exception: false) + warn "No notes/commits tree" + end (Integer === revision ? GITSVN : GIT).new(File.expand_path(dir)) end |