rev-parse git command doesn't need the --work-tree argument

small tidyup
This commit is contained in:
Andrew Scheller
2013-08-26 23:38:10 +01:00
parent 742f9a3c48
commit 6f8dc5f9bb

View File

@@ -106,7 +106,7 @@ function finalise {
ldconfig -r "${ROOT_PATH}"
if [[ ${FW_REV} == "" ]]; then
echo " *** Storing current firmware revision"
git --git-dir="${FW_REPOLOCAL}/.git" --work-tree="${FW_REPOLOCAL}" rev-parse ${BRANCH} > "${FW_REVFILE}"
git --git-dir="${FW_REPOLOCAL}/.git" rev-parse ${BRANCH} > "${FW_REVFILE}"
else
echo ${FW_REV} > "${FW_REVFILE}"
fi