Lab : Initialise a git repository : Q 18

Dear Team

In Lab : Initialise a git repository : Q18 , I believe in-spite of completing all expected actions the testing scripts carries out checks using wrong criterion . But please investigate and advise .

My issue is when we commit and check

The way I interprete this task both these files must be commited with seperate message and hence the check should check for separate strings .


Q : 18 

You are asked to commit the `README.md` file with the commit message `Add instructions for verification` and the `js/theme.js` file with the message `Increase time from 400 to 500`

Note that the `README.md` file is already staged. So you just have to commit it. The file `js/theme.js` is to be committed as part of another commit.

* Tasks not completed!

* Verify file committed

Commit with the message 'Add instructions for verification' not found

===========================================================================

Output from the terminal : 

sarah $ pwd
/home/sarah/story-blog
sarah $ git init
Initialized empty Git repository in /home/sarah/story-blog/.git/
sarah $
sarah $ echo "A Lion lay asleep in the forest" > lion-and-mouse.txt
sarah $
sarah $ git status
On branch master

Initial commit

Changes to be committed:
  (use "git rm --cached <file>..." to unstage)

        new file:   lion-and-mouse.txt

sarah $
sarah $ git commit -m " Added the lion and mouse story" lion-and-mouse.txt
[master (root-commit) 695c823]  Added the lion and mouse story
 1 file changed, 1 insertion(+)
 create mode 100644 lion-and-mouse.txt
sarah (master)$ ls
lion-and-mouse.txt  notes.txt
sarah (master)$ git status
On branch master
Untracked files:
  (use "git add <file>..." to include in what will be committed)

        notes.txt

nothing added to commit but untracked files present (use "git add" to track)
sarah (master)$
sarah (master)$ ls -al
total 20
drwxr-sr-x    3 sarah    sarah         4096 Dec  8 11:09 .
drwxr-sr-x    1 sarah    sarah         4096 Dec  8 11:01 ..
drwxr-sr-x    8 sarah    sarah         4096 Dec  8 11:09 .git
-rw-r--r--    1 sarah    sarah           32 Dec  8 11:02 lion-and-mouse.txt
sarah (master)$ ls
README.md  assets     css        fonts      img        index.php  js         scss       vendors
sarah (master)$
sarah (master)$ ls -al
sarah (master)$ git status
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
  (use "git push" to publish your local commits)
Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

        modified:   README.md

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

        modified:   js/theme.js

sarah (master)$ git commit -m "instructions for verification" README.md
[master 210add4] instructions for verification
 1 file changed, 1 insertion(+)
sarah (master)$
sarah (master)$
sarah (master)$ git add js/theme.js
sarah (master)$
sarah (master)$ git commit -m "Increase time from 400 to 500" js/theme.js
[master 78f4f63] Increase time from 400 to 500
 1 file changed, 1 insertion(+), 1 deletion(-)
sarah (master)$ git status
On branch master
Your branch is ahead of 'origin/master' by 3 commits.
  (use "git push" to publish your local commits)
nothing to commit, working directory clean
sarah (master)$
sarah (master)$ pwd
/home/sarah/learning-app-ecommerce
sarah (master)$
sarah (master)$ date
Tue Dec  8 11:28:11 UTC 2020
sarah (master)$
sarah (master)$ ls
README.md  assets     css        fonts      img        index.php  js         scss       vendors
sarah (master)$
sarah (master)$

===================================================================

Reason for Failure provided : 

* Tasks not completed!

* Verify file committed

Commit with the message 'Add instructions for verification' not found

=============================================================

Justification 

If you go through my above working the 1st commit has this messege using copy paste as it is.
Can yo please advise ?

Hello, @ppnehe
Sorry, I don’t get you?

Ok Please ignore my previous details .
Just focus on the output captured in the same.

Kindly investigate and let me know why has this failed ?
What changes are required here for the checks to pass ?

with best regards
Pradeep Nehe