Chinthakayala, Sheshashailavas (sc2914) | d156997 | 2017-08-28 05:25:46 -0900 | [diff] [blame] | 1 | if [ "$#" != "1" ] |
2 | then | ||||
3 | echo "Usage $0 gitLocalRepositoryDir" | ||||
4 | exit | ||||
5 | fi | ||||
6 | localGitRepository=$1 | ||||
7 | cd $localGitRepository | ||||
8 | if [ -e "$localGitRepository" ] | ||||
9 | then | ||||
10 | git rev-parse --abbrev-ref HEAD | ||||
11 | else | ||||
12 | echo Git Local repository not set | ||||
13 | fi |