config: Fix git reset arguments for force sync
Currently if the git revision specified it a tag, this issue gets
unnoticed as the git checkout prior to git reset does the right job
of checking out the right source and git tag -l
resolves to success
which means git reset --hard
step is skipped.
However when the commit hash is specified, while the checkout is successful
the git tag -l
resolves to false and git reset --hard
is executed
which doesn't like or accept the remote name in the index/tag.
So fix it my dropping the remote name origin
in the reset step.
Cc: Jean-Philippe Brucker jean-philippe@linaro.org Signed-off-by: Sudeep Holla sudeep.holla@arm.com