Blame tests/p_git/12-test_git_log.sh

Pratima, Madhurranjan, Nilesh aa2e40
#!/bin/bash
Pratima, Madhurranjan, Nilesh aa2e40
Pratima, Madhurranjan, Nilesh aa2e40
# Author: Pratima Singh <prati.86@gmail.com>, Nilesh Bairagi <nileshbairagi@gmail.com>, Madhurranjan Mohaan <madhurranjan.mohaan@gmail.com>
Pratima, Madhurranjan, Nilesh aa2e40
Pratima, Madhurranjan, Nilesh aa2e40
# Tsting git log and git commit msgs
Pratima, Madhurranjan, Nilesh aa2e40
rm -rf /tmp/temprepo/ /tmp/cloned_repo/ 
Pratima, Madhurranjan, Nilesh aa2e40
temp_repo="/tmp/temprepo"
Pratima, Madhurranjan, Nilesh aa2e40
mkdir -p $temp_repo
Pratima, Madhurranjan, Nilesh aa2e40
cd $temp_repo
Pratima, Madhurranjan, Nilesh aa2e40
git init . --bare
Pratima, Madhurranjan, Nilesh aa2e40
cd /tmp
Pratima, Madhurranjan, Nilesh aa2e40
git clone $temp_repo cloned_repo
Pratima, Madhurranjan, Nilesh aa2e40
cd cloned_repo
Pratima, Madhurranjan, Nilesh aa2e40
echo "hello world" > hello
Pratima, Madhurranjan, Nilesh aa2e40
git add hello
Pratima, Madhurranjan, Nilesh aa2e40
git commit -m "Temp commit" 2>&1
Pratima, Madhurranjan, Nilesh aa2e40
git log --grep="Temp commit" 2>&1
Pratima, Madhurranjan, Nilesh aa2e40
t_CheckExitStatus $?