Gitiles
Code Review
Sign In
gerrit.nordix.org
/
onap
/
ccsdk
/
distribution
/
5e5cc2b2ace3a5fe4b1b2394bfa5a32f4664e52b
/
.
/
dgbuilder
/
git_scripts
/
gitcurbranch
blob: 5a82e483ca035b2007918a939bcb1aebc5df7acd [
file
] [
log
] [
blame
]
if
[
"$#"
!=
"1"
]
then
echo
"Usage $0 gitLocalRepositoryDir"
exit
fi
localGitRepository
=
$1
cd $localGitRepository
if
[
-
e
"$localGitRepository"
]
then
git rev
-
parse
--
abbrev
-
ref
HEAD
else
echo
Git
Local
repository
not
set
fi