Skip to content

Commit

Permalink
fix(submodule.rb): explicitly run branch master
Browse files Browse the repository at this point in the history
Signed-off-by: Norwid Behrnd <[email protected]>
  • Loading branch information
nbehrnd committed Apr 21, 2024
1 parent 675fac2 commit 33fcbc5
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions levels/submodule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,20 @@
description "You want to include the files from the following repo: `https://github.com/jackmaney/githug-include-me` into the folder `./githug-include-me`. Do this without manually cloning the repo or copying the files from the repo into this repo."

setup do
repo.init
repo.init
system "git branch -m master"
end

solution do
return false if not File.directory?("./githug-include-me")
return false if not File.exist?("./githug-include-me/README.md")
return false if not File.exist?("./githug-include-me/.git")
return false if File.directory?("./githug-include-me/.git")
return false if not File.exist?(".gitmodules")
return false if not File.directory?("./githug-include-me")
return false if not File.exist?("./githug-include-me/README.md")
return false if not File.exist?("./githug-include-me/.git")
return false if File.directory?("./githug-include-me/.git")
return false if not File.exist?(".gitmodules")

return true
return true
end

hint do
puts "Take a look at `git submodule`."
puts "Take a look at `git submodule`."
end

0 comments on commit 33fcbc5

Please sign in to comment.