summaryrefslogtreecommitdiff
path: root/tool/lib/vcs.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/lib/vcs.rb')
-rw-r--r--tool/lib/vcs.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb
index ca5c47190a..8896c3458a 100644
--- a/tool/lib/vcs.rb
+++ b/tool/lib/vcs.rb
@@ -250,6 +250,7 @@ class VCS
end
def after_export(dir)
+ FileUtils.rm_rf(Dir.glob("#{dir}/.git*"))
end
def revision_handler(rev)
@@ -386,6 +387,7 @@ class VCS
end
def after_export(dir)
+ super
FileUtils.rm_rf(dir+"/.svn")
end
@@ -571,10 +573,6 @@ class VCS
system(COMMAND, "clone", "-s", (@srcdir || '.').to_s, "-b", url, dir)
end
- def after_export(dir)
- FileUtils.rm_rf(Dir.glob("#{dir}/.git*"))
- end
-
def branch_beginning(url)
cmd_read(%W[ #{COMMAND} log -n1 --format=format:%H
--author=matz --committer=matz --grep=has\ started