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