Compile error Recording to error.GitError

[ 91% 198/216] build out/target/produc…nifests/manifest-2018-08-15–21-01.xml
FAILED: /bin/bash -c “(mkdir -p out/target/product/kvim/upgrade ) && (repo manifest -r -o out/target/product/kvim/manifests/manifest-2018-08-15–21-01.xml ) && (cp out/target/product/kvim/manifests/manifest-2018-08-15–21-01.xml out/target/product/kvim/upgrade/manifest.xml )”
Traceback (most recent call last):
File “/android_box_7.1/.repo/repo/”, line 531, in
File “/android_box_7.1/.repo/repo/”, line 507, in _Main
result = repo._Run(argv) or 0
File “/android_box_7.1/.repo/repo/”, line 180, in _Run
result = cmd.Execute(copts, cargs)
File “/android_box_7.1/.repo/repo/subcmds/”, line 80, in Execute
File “/android_box_7.1/.repo/repo/subcmds/”, line 70, in _Output
peg_rev_upstream = opt.peg_rev_upstream)
File “/android_box_7.1/.repo/repo/”, line 327, in Save
output_projects(None, root, list(sorted(projects)))
File “/android_box_7.1/.repo/repo/”, line 241, in output_projects
output_project(parent, parent_node, project)
File “/android_box_7.1/.repo/repo/”, line 268, in output_project
value = p.work_git.rev_parse(HEAD + ‘^0’)
File “/android_box_7.1/.repo/repo/”, line 2747, in runner
(, name, p.stderr))
error.GitError: android_art rev-parse: fatal: ambiguous argument ‘HEAD^0’: unknown revision or path not in the working tree.
Use ‘–’ to separate paths from revisions, like this:
‘git […] – […]’

how can i cancel repo or git when i compile, i had used my “art” , so this problem came out. How to solve it