Fail repo sync on Ubuntu 18.04

Which system do you use? Android, Ubuntu, OOWOW or others?

Android

Which version of system do you use? Khadas official images, self built images, or others?

Khadas official images

Please describe your issue below:

I get errors when synchronizing repo

Post a console log of your issue below:

fatal: 
SyncError Aggregate Errors
GitCommandError: git command failure
    Project: android_vendor_amlogic_common
    Args: fetch --quiet --progress github --prune --recurse-submodules=no --tags +refs/heads/*:refs/remotes/github/* +refs/tags/*:refs/tags/*
    Stdout:
fatal: bad object HEAD
    Stderr:
None

android_vendor_amlogic_common:
fatal: bad object HEAD
error: https://github.com/khadas/android_vendor_amlogic_common did not send all necessary objects

error.GitError: Cannot fetch GitCommandError: git command failure
    Project: android_vendor_amlogic_common
    Args: update-ref -m manifest set to b539fd3c60cbd5cda9b136a11063f48706bd83a8 --no-deref refs/remotes/m/khadas-vim1s-r b539fd3c60cbd5cda9b136a11063f48706bd83a8^0
    Stdout:
None
    Stderr:
fatal: b539fd3c60cbd5cda9b136a11063f48706bd83a8^0: not a valid SHA1

Hello @Lexins

@goenjoy will help you there.

Im resolve this problem.
replace sting in default.xml:

old:
<project name="android_vendor_amlogic_common" path="vendor/amlogic/common" revision="b539fd3c60cbd5cda9b136a11063f48706bd83a8"  />

new:
<project name="android_vendor_amlogic_common" path="vendor/amlogic/common" revision="f7c061d5985d8f1ecba7fdb58755f0183e40c464"  />
1 Like

Thank you for your feedback. The root cause of the error was that a submission was missed in the corresponding directory upload. You don’t need to modify the default.xml file anymore, just pull it again.