Client: fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree

Building client after client/server compiled using build_client.bat. Looking at the build_client.bat it runs these two cmd at the beginning:

call update_deps.bat <<<completes ok

call checkout_client.bat <<<Seeing following error:

C:\Users\Administrator\Desktop\Backend>call checkout_client.bat

C:\Users\Administrator\Desktop\Backend>for /F “delims=” %i in (‘git rev-parse --abbrev-ref HEAD’) do set BRANCH=%i
fatal: ambiguous argument ‘HEAD’: unknown revision or path not in the working tree.
Use ‘–’ to separate paths from revisions, like this:
‘git […] – […]’

C:\Users\Administrator\Desktop\Backend>set BRANCH=HEAD

C:\Users\Administrator\Desktop\Backend>if not exist client git clone -b HEAD client

C:\Users\Administrator\Desktop\Backend>cd client

C:\Users\Administrator\Desktop\Backend\client>git fetch

C:\Users\Administrator\Desktop\Backend\client>git checkout -b HEAD origin/HEAD
fatal: ‘origin/HEAD’ is not a commit and a branch ‘HEAD’ cannot be created from it

C:\Users\Administrator\Desktop\Backend\client>git checkout HEAD
error: pathspec ‘HEAD’ did not match any file(s) known to git

C:\Users\Administrator\Desktop\Backend\client>git reset --hard

C:\Users\Administrator\Desktop\Backend\client>git pull
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

git branch --set-upstream-to=<remote>/<branch> master

C:\Users\Administrator\Desktop\Backend\client>git remote -v