[Android Q&A, Help & Troubleshooting] GhostIsBaked:
After trying to port a rom to my device from source and running repo sync, it seems i have come across some corrupt objects and some fetch errors, any way to work around this or fix this? Help would be greatly appreciated.

ghost@Ubuntu-Precise:~/android/system$ repo sync -f
error: unable to resolve reference refs/remotes/aosp/tools_r22: Success
From https://android-review.googlesource.com/platform/hardware/ti/omap4xxx
! [new branch] tools_r22 -> aosp/tools_r22 (unable to update local ref)
remote: Counting objects: 2193, done.
error: unable to resolve reference refs/remotes/aosp/tools_r22: Success
From https://android-review.googlesource.com/platform/external/webkit
! [new branch] tools_r22 -> aosp/tools_r22 (unable to update local ref)
error: unable to resolve reference refs/remotes/aosp/tools_r22: Success
From https://android-review.googlesource.com/platform/external/eclipse-basebuilder
! [new branch] tools_r22 -> aosp/tools_r22 (unable to update local ref)
error: unable to resolve reference refs/remotes/aosp/tools_r22: Success
From https://android-review.googlesource.com/platform/external/webkit
! [new branch] tools_r22 -> aosp/tools_r22 (unable to update local ref)
remote: Compressing objects: 100% (963/963), done.
error: unable to resolve reference refs/remotes/aosp/tools_r22: Success
From https://android-review.googlesource.com/platform/external/eclipse-basebuilder
! [new branch] tools_r22 -> aosp/tools_r22 (unable to update local ref)
error: object file /home/ghost/android/system/.repo/projects/vendor/samsung.git/objects/97/ade1bcc3e99e1e58dcfccfcbee0e3fcfb7034b is empty
[B]fatal: loose object 97ade1bcc3e99e1e58dcfccfcbee0e3fcfb7034b (stored in /home/ghost/android/system/.repo/projects/vendor/samsung.git/objects/97/ade1bcc3e99e1e58dcfccfcbee0e3fcfb7034b) is corrupt
fatal: index-pack failed[/B]
error: Cannot fetch platform/external/webkit
warn: --force-broken, continuing to sync
Fetching projects: 0% (1/340) error: object file /home/ghost/android/system/.repo/projects/sdk.git/objects[B]/06/ebcd593ed97f99ed1e6d2672a71dd29e249cda is empty
fatal: loose object 06ebcd593ed97f99ed1e6d2672a71dd29e249cda (stored in /home/ghost/android/system/.repo/projects/sdk.git/objects/06/ebcd593ed97f99ed1e6d2672a71dd29e249cda) is corrupt
fatal: The remote end hung up unexpectedly[/B]
error: Cannot fetch platform/external/eclipse-basebuilder
warn: --force-broken, continuing to sync
error: unable to resolve reference refs/remotes/aosp/tools_r22: Success
From https://android-review.googlesource.com/platform/prebuilts/qemu-kernel
! [new branch] tools_r22 -> aosp/tools_r22 (unable to update local ref)
remote: Counting objects: 2193, done.
error: unable to resolve reference refs/remotes/aosp/tools_r22: Success
From https://android-review.googlesource.com/platform/hardware/ti/omap4xxx
! [new branch] tools_r22 -> aosp/tools_r22 (unable to update local ref)
[B]error: object file /home/ghost/android/system/.repo/projects/sdk.git/objects/06/ebcd593ed97f99ed1e6d2672a71dd29e249cda is empty
fatal: loose object 06ebcd593ed97f99ed1e6d2672a71dd29e249cda (stored in /home/ghost/android/system/.repo/projects/sdk.git/objects/06/ebcd593ed97f99ed1e6d2672a71dd29e249cda) is corrupt
fatal: The remote end hung up unexpectedly[/B]
error: unable to resolve reference refs/remotes/aosp/tools_r22: Success
From https://android-review.googlesource.com/platform/prebuilts/qemu-kernel
! [new branch] tools_r22 -> aosp/tools_r22 (unable to update local ref)
remote: Compressing objects: 100% (963/963), done.
error: Cannot fetch platform/hardware/ti/omap4xxx598 KiB/s
warn: --force-broken, continuing to sync
error: unable to resolve reference refs/remotes/aosp/tools_r22: Success
From https://android-review.googlesource.com/platform/packages/apps/Tag
! [new branch] tools_r22 -> aosp/tools_r22 (unable to update local ref)
error: Cannot fetch platform/sdk0), 5.18 MiB | 587 KiB/s
warn: --force-broken, continuing to sync
[B]Fetching projects: 1% (4/340) Receiving objects: 14% (292/1970), 5.75 MiB | error: object file /home/ghost/android/system/.repo/projects/development.git/objects/06/e6c6ad452aec4814e03fbd638ef9f3706aeb99 is empty
fatal: loose object 06e6c6ad452aec4814e03fbd638ef9f3706aeb99 (stored in /home/ghost/android/system/.repo/projects/development.git/objects/06/e6c6ad452aec4814e03fbd638ef9f3706aeb99) is corrupt
fatal: The remote end hung up unexpectedly
error: object file /home/ghost/android/system/.repo/projects/vendor/samsung.git/objects/97/ade1bcc3e99e1e58dcfccfcbee0e3fcfb7034b is empty
fatal: loose object 97ade1bcc3e99e1e58dcfccfcbee0e3fcfb7034b (stored in /home/ghost/android/system/.repo/projects/vendor/samsung.git/objects/97/ade1bcc3e99e1e58dcfccfcbee0e3fcfb7034b) is corrupt
fatal: index-pack failed[/B]
error: Cannot fetch platform/prebuilts/qemu-kernel
warn: --force-broken, continuing to sync
error: unable to resolve reference refs/remotes/aosp/tools_r22: Success
From https://android-review.googlesource.com/platform/system/netd
! [new branch] tools_r22 -> aosp/tools_r22 (unable to update local ref)
error: unable to resolve reference refs/remotes/aosp/tools_r22: Success
From https://android-review.googlesource.com/platform/packages/apps/Tag
! [new branch] tools_r22 -> aosp/tools_r22 (unable to update local ref)
[B]error: object file /home/ghost/android/system/.repo/projects/development.git/objects/06/e6c6ad452aec4814e03fbd638ef9f3706aeb99 is empty
fatal: loose object 06e6c6ad452aec4814e03fbd638ef9f3706aeb99 (stored in /home/ghost/android/system/.repo/projects/development.git/objects/06/e6c6ad452aec4814e03fbd638ef9f3706aeb99) is corrupt
fatal: The remote end hung up unexpectedly
error: Cannot fetch TheMuppets/proprietary_vendor_samsung[/B]
warn: --force-broken, continuing to sync
error: unable to resolve reference refs/remotes/aosp/tools_r22: Success
From https://android-review.googlesource.com/platform/packages/apps/CellBroadcastReceiver
! [new branch] tools_r22 -> aosp/tools_r22 (unable to update local ref)
error: unable to resolve reference refs/remotes/aosp/tools_r22: Success
From https://android-review.googlesource.com/platform/system/netd
! [new branch] tools_r22 -> aosp/tools_r22 (unable to update local ref)
error: Cannot fetch platform/packages/apps/Tag
warn: --force-broken, continuing to sync
Fetching projects: 2% (7/340) error: unable to resolve reference refs/remotes/aosp/tools_r22: Success
From https://android-review.googlesource.com/platform/external/dbus
! [new branch] tools_r22 -> aosp/tools_r22 (unable to update local ref)
error: Cannot fetch platform/development
warn: --force-broken, continuing to sync
error: unable to resolve reference refs/remotes/aosp/tools_r22: Success
From https://android-review.googlesource.com/platform/packages/apps/CellBroadcastReceiver
! [new branch] tools_r22 -> aosp/tools_r22 (unable to update local ref)
error: unable to resolve reference refs/remotes/aosp/tools_r22: Success
From https://android-review.googlesource.com/platform/prebuilts/sdk
! [new branch] tools_r22 -> aosp/tools_r22 (unable to update local ref)
error: unable to resolve reference refs/remotes/aosp/tools_r22: Success
From https://android-review.googlesource.com/platform/external/dbus
! [new branch] tools_r22 -> aosp/tools_r22 (unable to update local ref)
error: Cannot fetch platform/system/netd
warn: --force-broken, continuing to sync
error: unable to resolve reference refs/remotes/aosp/tools_r22: Success
From https://android-review.googlesource.com/platform/prebuilts/eclipse
! [new branch] tools_r22 -> aosp/tools_r22 (unable to update local ref)
error: Cannot fetch platform/packages/apps/CellBroadcastReceiver
warn: --force-broken, continuing to sync
error: unable to resolve reference refs/remotes/aosp/tools_r22: Success
From https://android-review.googlesource.com/platform/external/icu4c
! [new branch] tools_r22 -> aosp/tools_r22 (unable to update local ref)
error: unable to resolve reference refs/remotes/aosp/tools_r22: Success
From https://android-review.googlesource.com/platform/prebuilts/sdk
! [new branch] tools_r22 -> aosp/tools_r22 (unable to update local ref)
error: unable to resolve reference refs/remotes/aosp/tools_r22: Success
From https://android-review.googlesource.com/platform/prebuilts/eclipse
! [new branch] tools_r22 -> aosp/tools_r22 (unable to update local ref)
error: Cannot fetch platform/external/dbus
warn: --force-broken, continuing to sync
Fetching projects: 3% (11/340) error: unable to resolve reference refs/remotes/aosp/tools_r22: Success
From https://android-review.googlesource.com/platform/external/llvm
! [new branch] tools_r22 -> aosp/tools_r22 (unable to update local ref)
error: unable to resolve reference refs/remotes/aosp/tools_r22: Success
From https://android-review.googlesource.com/platform/external/icu4c
! [new branch] tools_r22 -> aosp/tools_r22 (unable to update local ref)
error: Cannot fetch platform/prebuilts/sdk
warn: --force-broken, continuing to sync
error: unable to resolve reference refs/remotes/aosp/tools_r22: Success
From https://android-review.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6
! [new branch] tools_r22 -> aosp/tools_r22 (unable to update local ref)
error: unable to resolve reference refs/remotes/aosp/tools_r22: Success
From https://android-review.googlesource.com/platform/external/llvm
! [new branch] tools_r22 -> aosp/tools_r22 (unable to update local ref)
error: Cannot fetch platform/prebuilts/eclipse
warn: --force-broken, continuing to sync
error: unable to resolve reference refs/remotes/aosp/tools_r22: Success
From https://android-review.googlesource.com/platform/external/oprofile
! [new branch] tools_r22 -> aosp/tools_r22 (unable to update local ref)
error: Cannot fetch platform/external/icu4c
warn: --force-broken, continuing to sync
Fetching projects: 4% (14/340) error: unable to resolve reference refs/remotes/aosp/tools_r22: Success
From https://android-review.googlesource.com/platform/frameworks/opt/calendar
! [new branch] tools_r22 -> aosp/tools_r22 (unable to update local ref)
error: unable to resolve reference refs/remotes/aosp/tools_r22: Success
From https://android-review.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6
! [new branch] tools_r22 -> aosp/tools_r22 (unable to update local ref)
error: Cannot fetch platform/external/llvm
warn: --force-broken, continuing to sync
error: unable to resolve reference refs/remotes/aosp/tools_r22: Success
From https://android-review.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6
! [new branch] tools_r22 -> aosp/tools_r22 (unable to update local ref)
error: unable to resolve reference refs/remotes/aosp/tools_r22: Success
From https://android-review.googlesource.com/platform/frameworks/opt/calendar
! [new branch] tools_r22 -> aosp/tools_r22 (unable to update local ref)
error: unable to resolve reference refs/remotes/aosp/tools_r22: Success
From https://android-review.googlesource.com/platform/external/oprofile
! [new branch] tools_r22 -> aosp/tools_r22 (unable to update local ref)
error: Cannot fetch platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6
warn: --force-broken, continuing to sync
Fetching projects: 15% (51/340) error: unable to resolve reference refs/remotes/aosp/tools_r22: Success
From https://android-review.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6
! [new branch] tools_r22 -> aosp/tools_r22 (unable to update local ref)
Fetching projects: 18% (62/340) error: Cannot fetch platform/frameworks/opt/calendar
warn: --force-broken, continuing to sync
Fetching projects: 31% (106/340) error: Cannot fetch platform/external/oprofile
warn: --force-broken, continuing to sync
Fetching projects: 64% (218/340) error: Cannot fetch platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6
warn: --force-broken, continuing to sync
Fetching projects: 100% (340/340), done.