Skip to content

Commit

Permalink
fix(rm.rb): explicitly define branch as master
Browse files Browse the repository at this point in the history
Explicitly define the principal branch as master.  Light edit
of the description of the task ahead, light lint of the source
code.

Signed-off-by: Norwid Behrnd <[email protected]>
  • Loading branch information
nbehrnd committed Apr 17, 2024
1 parent 26ce22c commit f7764b5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions levels/rm.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
difficulty 2

description "A file has been removed from the working tree, however the file was not removed from the repository. Find out what this file was and remove it."
description "A file has been removed from the working tree, but not from the repository. Identify this file was and remove it."

setup do
repo.init
file = File.new("deleteme.rb", "w")
file.close
file.close
system "git branch -m master"
repo.add("deleteme.rb")
repo.commit_all("Added a temp file")
File.delete("deleteme.rb")
Expand All @@ -16,5 +17,7 @@
end

hint do
puts ["You may need to use more than one command to complete this.", "You have checked your staging area in a previous level.", "Don't forget to run `git` for a list of commands."]
puts ["You may need to use more than one command to complete this.",
"You have checked your staging area in a previous level.",
"Don't forget to run `git` for a list of commands."]
end

0 comments on commit f7764b5

Please sign in to comment.