Continue to export even if no notes/commits

Just exporting may not imply exporting ChangeLog which needs
notes/commits.  [Bug #16167]
This commit is contained in:
Nobuyoshi Nakada 2019-09-14 23:47:33 +09:00
parent 6d2dcf9632
commit e9c7fc7ca9
No known key found for this signature in database
GPG Key ID: 4BC7D6DF58D8DF60

View File

@ -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