Skip to content

Commit

Permalink
fix(number_of_files_committed): explicitly use master branch
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 and of the hint about the
solution.

Signed-off-by: Norwid Behrnd <[email protected]>
  • Loading branch information
nbehrnd committed Apr 17, 2024
1 parent 0ef4151 commit 26ce22c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions levels/number_of_files_committed.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
difficulty 1
description "There are some files in this repository, how many of the files are staged for a commit?"
description "There are some files in this repository; how many of them are staged for a commit?"

setup do
repo.init
Expand All @@ -8,6 +8,7 @@
%w{rubyfile4.rb rubyfile5.rb}.each do |file|
FileUtils.touch(file)
repo.add(file)
system "git branch -m master"
end
repo.commit_all "Commit"

Expand Down Expand Up @@ -47,5 +48,5 @@
end

hint do
puts "You are looking for a command to identify the status of the repository, (resembles a linux command)."
puts "You are looking for a command to identify the status of the repository (resembles a Linux command)."
end

0 comments on commit 26ce22c

Please sign in to comment.