summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tool/lib/vcs.rb4
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