From 516d3e226cf1af97d0f591589cd40f4a2faf2066 Mon Sep 17 00:00:00 2001 From: Adam Roben Date: Mon, 22 Dec 2014 15:50:33 -0500 Subject: [PATCH] Suggest adding/removing submodules from the repo --- test/test_grammars.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/test_grammars.rb b/test/test_grammars.rb index 0bbd8923..38652cf6 100644 --- a/test/test_grammars.rb +++ b/test/test_grammars.rb @@ -23,12 +23,14 @@ class TestGrammars < Test::Unit::TestCase message = "" unless nonexistent_submodules.empty? - message << "The following submodules are listed in grammars.yml but don't seem to exist in the repository. Maybe you should remove them from grammars.yml?\n" + message << "The following submodules are listed in grammars.yml but don't seem to exist in the repository.\n" + message << "Either add them using `git submodule add` or remove them from grammars.yml.\n" message << nonexistent_submodules.sort.join("\n") end unless unlisted_submodules.empty? message << "\n" unless message.empty? - message << "The following submodules exist in the repository but aren't listed in grammars.yml. Maybe you should add them to grammars.yml?\n" + message << "The following submodules exist in the repository but aren't listed in grammars.yml.\n" + message << "Either add them to grammars.yml or remove them from the repository using `git rm`.\n" message << unlisted_submodules.sort.join("\n") end