Web lists-archives.com

Re: Copying of symbolic links not working as expected




Note that this creates a chicken-and-the-egg problem when copying paths which contain symbolic links which will be but are not yet valid at the time of copying.

For example, copying a very large and complex tree with many lots of links will result in a broken copy. I'm trying to copy a directory tree right now and it's a major headache.

For example:

$ cp -ra /c/data/repositories/ /c/development/repositories/
cp: cannot create symbolic link '/c/development/repositories/repositories/aosp/source/.repo/manifest.xml': No such file or directory cp: cannot create symbolic link '/c/development/repositories/repositories/aosp/source/.repo/manifests/.git/config': No such file or directory cp: cannot create symbolic link '/c/development/repositories/repositories/aosp/source/.repo/manifests/.git/description': No such file or directory cp: cannot create symbolic link '/c/development/repositories/repositories/aosp/source/.repo/manifests/.git/hooks': No such file or directory cp: cannot create symbolic link '/c/development/repositories/repositories/aosp/source/.repo/manifests/.git/info': No such file or directory cp: cannot create symbolic link '/c/development/repositories/repositories/aosp/source/.repo/manifests/.git/logs': No such file or directory cp: cannot create symbolic link '/c/development/repositories/repositories/aosp/source/.repo/manifests/.git/objects': No such file or directory cp: cannot create symbolic link '/c/development/repositories/repositories/aosp/source/.repo/manifests/.git/packed-refs': No such file or directory cp: cannot create symbolic link '/c/development/repositories/repositories/aosp/source/.repo/manifests/.git/refs': No such file or directory cp: cannot create symbolic link '/c/development/repositories/repositories/aosp/source/.repo/manifests/.git/rr-cache': No such file or directory cp: cannot create symbolic link '/c/development/repositories/repositories/aosp/source/.repo/manifests/.git/shallow': No such file or directory cp: cannot create symbolic link '/c/development/repositories/repositories/aosp/source/.repo/manifests/.git/svn': No such file or directory cp: cannot create symbolic link '/c/development/repositories/repositories/aosp/source/.repo/manifests.git/hooks/commit-msg': No such file or directory cp: cannot create symbolic link '/c/development/repositories/repositories/aosp/source/.repo/manifests.git/hooks/pre-auto-gc': No such file or directory
...

And so on.

I had the same problem while trying to tar and untar:

tar: aosp/source/system/vold/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/system/vold.git/shallow’: No such file or directory tar: aosp/source/system/vold/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/system/vold.git/packed-refs’: No such file or directory tar: aosp/source/system/netd/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/system/netd.git/shallow’: No such file or directory tar: aosp/source/system/netd/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/system/netd.git/packed-refs’: No such file or directory tar: aosp/source/system/media/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/system/media.git/shallow’: No such file or directory tar: aosp/source/system/media/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/system/media.git/packed-refs’: No such file or directory tar: aosp/source/system/extras/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/system/extras.git/shallow’: No such file or directory tar: aosp/source/system/extras/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/system/extras.git/packed-refs’: No such file or directory tar: aosp/source/system/core/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/system/core.git/shallow’: No such file or directory tar: aosp/source/system/core/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/system/core.git/packed-refs’: No such file or directory tar: aosp/source/system/bluetooth/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/system/bluetooth.git/shallow’: No such file or directory tar: aosp/source/sdk/.git/shallow: Cannot create symlink to ‘../../.repo/projects/sdk.git/shallow’: No such file or directory tar: aosp/source/sdk/.git/packed-refs: Cannot create symlink to ‘../../.repo/projects/sdk.git/packed-refs’: No such file or directory tar: aosp/source/prebuilt/.git/shallow: Cannot create symlink to ‘../../.repo/projects/prebuilt.git/shallow’: No such file or directory tar: aosp/source/prebuilt/.git/packed-refs: Cannot create symlink to ‘../../.repo/projects/prebuilt.git/packed-refs’: No such file or directory tar: aosp/source/packages/wallpapers/PhaseBeam/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/wallpapers/PhaseBeam.git/shallow’: No such file or directory tar: aosp/source/packages/wallpapers/PhaseBeam/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/wallpapers/PhaseBeam.git/packed-refs’: No such file or directory tar: aosp/source/packages/wallpapers/NoiseField/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/wallpapers/NoiseField.git/shallow’: No such file or directory tar: aosp/source/packages/wallpapers/NoiseField/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/wallpapers/NoiseField.git/packed-refs’: No such file or directory tar: aosp/source/packages/wallpapers/MusicVisualization/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/wallpapers/MusicVisualization.git/shallow’: No such file or directory tar: aosp/source/packages/wallpapers/MagicSmoke/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/wallpapers/MagicSmoke.git/shallow’: No such file or directory tar: aosp/source/packages/wallpapers/MagicSmoke/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/wallpapers/MagicSmoke.git/packed-refs’: No such file or directory tar: aosp/source/packages/wallpapers/LivePicker/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/wallpapers/LivePicker.git/shallow’: No such file or directory tar: aosp/source/packages/wallpapers/HoloSpiral/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/wallpapers/HoloSpiral.git/shallow’: No such file or directory tar: aosp/source/packages/wallpapers/HoloSpiral/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/wallpapers/HoloSpiral.git/packed-refs’: No such file or directory tar: aosp/source/packages/wallpapers/Galaxy4/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/wallpapers/Galaxy4.git/shallow’: No such file or directory tar: aosp/source/packages/wallpapers/Galaxy4/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/wallpapers/Galaxy4.git/packed-refs’: No such file or directory tar: aosp/source/packages/wallpapers/Basic/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/wallpapers/Basic.git/shallow’: No such file or directory tar: aosp/source/packages/wallpapers/Basic/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/wallpapers/Basic.git/packed-refs’: No such file or directory tar: aosp/source/packages/providers/UserDictionaryProvider/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/providers/UserDictionaryProvider.git/shallow’: No such file or directory tar: aosp/source/packages/providers/TelephonyProvider/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/providers/TelephonyProvider.git/shallow’: No such file or directory tar: aosp/source/packages/providers/TelephonyProvider/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/providers/TelephonyProvider.git/packed-refs’: No such file or directory tar: aosp/source/packages/providers/MediaProvider/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/providers/MediaProvider.git/shallow’: No such file or directory tar: aosp/source/packages/providers/MediaProvider/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/providers/MediaProvider.git/packed-refs’: No such file or directory tar: aosp/source/packages/providers/GoogleContactsProvider/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/providers/GoogleContactsProvider.git/shallow’: No such file or directory tar: aosp/source/packages/providers/DrmProvider/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/providers/DrmProvider.git/shallow’: No such file or directory tar: aosp/source/packages/providers/DownloadProvider/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/providers/DownloadProvider.git/shallow’: No such file or directory tar: aosp/source/packages/providers/DownloadProvider/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/providers/DownloadProvider.git/packed-refs’: No such file or directory tar: aosp/source/packages/providers/ContactsProvider/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/providers/ContactsProvider.git/shallow’: No such file or directory tar: aosp/source/packages/providers/ContactsProvider/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/providers/ContactsProvider.git/packed-refs’: No such file or directory tar: aosp/source/packages/providers/CalendarProvider/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/providers/CalendarProvider.git/shallow’: No such file or directory tar: aosp/source/packages/providers/CalendarProvider/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/providers/CalendarProvider.git/packed-refs’: No such file or directory tar: aosp/source/packages/providers/ApplicationsProvider/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/providers/ApplicationsProvider.git/shallow’: No such file or directory tar: aosp/source/packages/inputmethods/PinyinIME/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/inputmethods/PinyinIME.git/shallow’: No such file or directory tar: aosp/source/packages/inputmethods/PinyinIME/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/inputmethods/PinyinIME.git/packed-refs’: No such file or directory tar: aosp/source/packages/inputmethods/OpenWnn/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/inputmethods/OpenWnn.git/shallow’: No such file or directory tar: aosp/source/packages/inputmethods/OpenWnn/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/inputmethods/OpenWnn.git/packed-refs’: No such file or directory tar: aosp/source/packages/inputmethods/LatinIME/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/inputmethods/LatinIME.git/shallow’: No such file or directory tar: aosp/source/packages/inputmethods/LatinIME/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/inputmethods/LatinIME.git/packed-refs’: No such file or directory tar: aosp/source/packages/experimental/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/packages/experimental.git/shallow’: No such file or directory tar: aosp/source/packages/experimental/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/packages/experimental.git/packed-refs’: No such file or directory tar: aosp/source/packages/apps/VoiceDialer/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/VoiceDialer.git/shallow’: No such file or directory tar: aosp/source/packages/apps/VoiceDialer/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/VoiceDialer.git/packed-refs’: No such file or directory tar: aosp/source/packages/apps/VideoEditor/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/VideoEditor.git/shallow’: No such file or directory tar: aosp/source/packages/apps/VideoEditor/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/VideoEditor.git/packed-refs’: No such file or directory tar: aosp/source/packages/apps/Tag/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Tag.git/shallow’: No such file or directory tar: aosp/source/packages/apps/Tag/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Tag.git/packed-refs’: No such file or directory tar: aosp/source/packages/apps/Stk/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Stk.git/shallow’: No such file or directory tar: aosp/source/packages/apps/Stk/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Stk.git/packed-refs’: No such file or directory tar: aosp/source/packages/apps/SpeechRecorder/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/SpeechRecorder.git/shallow’: No such file or directory tar: aosp/source/packages/apps/SpareParts/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/SpareParts.git/shallow’: No such file or directory tar: aosp/source/packages/apps/SoundRecorder/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/SoundRecorder.git/shallow’: No such file or directory tar: aosp/source/packages/apps/Settings/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Settings.git/shallow’: No such file or directory tar: aosp/source/packages/apps/Settings/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Settings.git/packed-refs’: No such file or directory tar: aosp/source/packages/apps/QuickSearchBox/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/QuickSearchBox.git/shallow’: No such file or directory tar: aosp/source/packages/apps/QuickSearchBox/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/QuickSearchBox.git/packed-refs’: No such file or directory tar: aosp/source/packages/apps/Provision/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Provision.git/shallow’: No such file or directory tar: aosp/source/packages/apps/Protips/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Protips.git/shallow’: No such file or directory tar: aosp/source/packages/apps/Phone/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Phone.git/shallow’: No such file or directory tar: aosp/source/packages/apps/Phone/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Phone.git/packed-refs’: No such file or directory tar: aosp/source/packages/apps/PackageInstaller/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/PackageInstaller.git/shallow’: No such file or directory tar: aosp/source/packages/apps/PackageInstaller/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/PackageInstaller.git/packed-refs’: No such file or directory tar: aosp/source/packages/apps/Nfc/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Nfc.git/shallow’: No such file or directory tar: aosp/source/packages/apps/Nfc/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Nfc.git/packed-refs’: No such file or directory tar: aosp/source/packages/apps/MusicFX/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/MusicFX.git/shallow’: No such file or directory tar: aosp/source/packages/apps/Music/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Music.git/shallow’: No such file or directory tar: aosp/source/packages/apps/Music/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Music.git/packed-refs’: No such file or directory tar: aosp/source/packages/apps/Mms/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Mms.git/shallow’: No such file or directory tar: aosp/source/packages/apps/Mms/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Mms.git/packed-refs’: No such file or directory tar: aosp/source/packages/apps/Launcher2/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Launcher2.git/shallow’: No such file or directory tar: aosp/source/packages/apps/Launcher2/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Launcher2.git/packed-refs’: No such file or directory tar: aosp/source/packages/apps/KeyChain/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/KeyChain.git/shallow’: No such file or directory tar: aosp/source/packages/apps/HTMLViewer/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/HTMLViewer.git/shallow’: No such file or directory tar: aosp/source/packages/apps/Gallery2/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Gallery2.git/shallow’: No such file or directory tar: aosp/source/packages/apps/Gallery2/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Gallery2.git/packed-refs’: No such file or directory tar: aosp/source/packages/apps/Gallery/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Gallery.git/shallow’: No such file or directory tar: aosp/source/packages/apps/Gallery/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Gallery.git/packed-refs’: No such file or directory tar: aosp/source/packages/apps/Exchange/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Exchange.git/shallow’: No such file or directory tar: aosp/source/packages/apps/Exchange/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Exchange.git/packed-refs’: No such file or directory tar: aosp/source/packages/apps/Email/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Email.git/shallow’: No such file or directory tar: aosp/source/packages/apps/Email/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Email.git/packed-refs’: No such file or directory tar: aosp/source/packages/apps/DeskClock/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/DeskClock.git/shallow’: No such file or directory tar: aosp/source/packages/apps/DeskClock/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/DeskClock.git/packed-refs’: No such file or directory tar: aosp/source/packages/apps/Contacts/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Contacts.git/shallow’: No such file or directory tar: aosp/source/packages/apps/Contacts/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Contacts.git/packed-refs’: No such file or directory tar: aosp/source/packages/apps/CertInstaller/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/CertInstaller.git/shallow’: No such file or directory tar: aosp/source/packages/apps/CertInstaller/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/CertInstaller.git/packed-refs’: No such file or directory tar: aosp/source/packages/apps/CellBroadcastReceiver/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/CellBroadcastReceiver.git/shallow’: No such file or directory tar: aosp/source/packages/apps/CellBroadcastReceiver/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/CellBroadcastReceiver.git/packed-refs’: No such file or directory tar: aosp/source/packages/apps/Camera/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Camera.git/shallow’: No such file or directory tar: aosp/source/packages/apps/Camera/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Camera.git/packed-refs’: No such file or directory tar: aosp/source/packages/apps/Calendar/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Calendar.git/shallow’: No such file or directory tar: aosp/source/packages/apps/Calendar/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Calendar.git/packed-refs’: No such file or directory tar: aosp/source/packages/apps/Calculator/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Calculator.git/shallow’: No such file or directory tar: aosp/source/packages/apps/Calculator/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Calculator.git/packed-refs’: No such file or directory tar: aosp/source/packages/apps/Browser/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Browser.git/shallow’: No such file or directory tar: aosp/source/packages/apps/Browser/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Browser.git/packed-refs’: No such file or directory tar: aosp/source/packages/apps/Bluetooth/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Bluetooth.git/shallow’: No such file or directory tar: aosp/source/packages/apps/Bluetooth/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/Bluetooth.git/packed-refs’: No such file or directory tar: aosp/source/packages/apps/BasicSmsReceiver/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/packages/apps/BasicSmsReceiver.git/shallow’: No such file or directory tar: aosp/source/ndk/.git/shallow: Cannot create symlink to ‘../../.repo/projects/ndk.git/shallow’: No such file or directory tar: aosp/source/ndk/.git/packed-refs: Cannot create symlink to ‘../../.repo/projects/ndk.git/packed-refs’: No such file or directory tar: aosp/source/libcore/.git/shallow: Cannot create symlink to ‘../../.repo/projects/libcore.git/shallow’: No such file or directory tar: aosp/source/libcore/.git/packed-refs: Cannot create symlink to ‘../../.repo/projects/libcore.git/packed-refs’: No such file or directory tar: aosp/source/hardware/ti/omap4xxx/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/hardware/ti/omap4xxx.git/shallow’: No such file or directory tar: aosp/source/hardware/ti/omap4xxx/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/hardware/ti/omap4xxx.git/packed-refs’: No such file or directory tar: aosp/source/hardware/ti/omap3/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/hardware/ti/omap3.git/shallow’: No such file or directory tar: aosp/source/hardware/ti/omap3/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/hardware/ti/omap3.git/packed-refs’: No such file or directory tar: aosp/source/hardware/ril/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/hardware/ril.git/shallow’: No such file or directory tar: aosp/source/hardware/ril/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/hardware/ril.git/packed-refs’: No such file or directory tar: aosp/source/hardware/qcom/media/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/hardware/qcom/media.git/shallow’: No such file or directory tar: aosp/source/hardware/qcom/media/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/hardware/qcom/media.git/packed-refs’: No such file or directory tar: aosp/source/hardware/qcom/gps/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/hardware/qcom/gps.git/shallow’: No such file or directory tar: aosp/source/hardware/qcom/gps/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/hardware/qcom/gps.git/packed-refs’: No such file or directory tar: aosp/source/hardware/msm7k/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/hardware/msm7k.git/shallow’: No such file or directory tar: aosp/source/hardware/libhardware_legacy/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/hardware/libhardware_legacy.git/shallow’: No such file or directory tar: aosp/source/hardware/libhardware_legacy/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/hardware/libhardware_legacy.git/packed-refs’: No such file or directory tar: aosp/source/hardware/libhardware/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/hardware/libhardware.git/shallow’: No such file or directory tar: aosp/source/hardware/libhardware/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/hardware/libhardware.git/packed-refs’: No such file or directory tar: aosp/source/hardware/invensense/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/hardware/invensense.git/shallow’: No such file or directory tar: aosp/source/hardware/invensense/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/hardware/invensense.git/packed-refs’: No such file or directory tar: aosp/source/hardware/broadcom/wlan/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/hardware/broadcom/wlan.git/shallow’: No such file or directory tar: aosp/source/hardware/broadcom/wlan/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/hardware/broadcom/wlan.git/packed-refs’: No such file or directory tar: aosp/source/frameworks/support/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/frameworks/support.git/shallow’: No such file or directory tar: aosp/source/frameworks/support/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/frameworks/support.git/packed-refs’: No such file or directory tar: aosp/source/frameworks/opt/vcard/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/frameworks/opt/vcard.git/shallow’: No such file or directory tar: aosp/source/frameworks/opt/mailcommon/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/frameworks/opt/mailcommon.git/shallow’: No such file or directory tar: aosp/source/frameworks/opt/mailcommon/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/frameworks/opt/mailcommon.git/packed-refs’: No such file or directory tar: aosp/source/frameworks/opt/inputmethodcommon/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/frameworks/opt/inputmethodcommon.git/shallow’: No such file or directory tar: aosp/source/frameworks/opt/emoji/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/frameworks/opt/emoji.git/shallow’: No such file or directory tar: aosp/source/frameworks/opt/calendar/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/frameworks/opt/calendar.git/shallow’: No such file or directory tar: aosp/source/frameworks/media/libvideoeditor/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/frameworks/media/libvideoeditor.git/shallow’: No such file or directory tar: aosp/source/frameworks/media/libvideoeditor/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/frameworks/media/libvideoeditor.git/packed-refs’: No such file or directory tar: aosp/source/frameworks/ex/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/frameworks/ex.git/shallow’: No such file or directory tar: aosp/source/frameworks/ex/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/frameworks/ex.git/packed-refs’: No such file or directory tar: aosp/source/frameworks/compile/slang/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/frameworks/compile/slang.git/shallow’: No such file or directory tar: aosp/source/frameworks/compile/slang/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/frameworks/compile/slang.git/packed-refs’: No such file or directory tar: aosp/source/frameworks/compile/linkloader/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/frameworks/compile/linkloader.git/shallow’: No such file or directory tar: aosp/source/frameworks/compile/libbcc/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/frameworks/compile/libbcc.git/shallow’: No such file or directory tar: aosp/source/frameworks/compile/libbcc/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/frameworks/compile/libbcc.git/packed-refs’: No such file or directory tar: aosp/source/frameworks/base/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/frameworks/base.git/shallow’: No such file or directory tar: aosp/source/frameworks/base/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/frameworks/base.git/packed-refs’: No such file or directory tar: aosp/source/external/zlib/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/zlib.git/shallow’: No such file or directory tar: aosp/source/external/zlib/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/zlib.git/packed-refs’: No such file or directory tar: aosp/source/external/yaffs2/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/yaffs2.git/shallow’: No such file or directory tar: aosp/source/external/yaffs2/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/yaffs2.git/packed-refs’: No such file or directory tar: aosp/source/external/xmlwriter/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/xmlwriter.git/shallow’: No such file or directory tar: aosp/source/external/wpa_supplicant_8/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/wpa_supplicant_8.git/shallow’: No such file or directory tar: aosp/source/external/wpa_supplicant_8/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/wpa_supplicant_8.git/packed-refs’: No such file or directory tar: aosp/source/external/wpa_supplicant_6/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/wpa_supplicant_6.git/shallow’: No such file or directory tar: aosp/source/external/wpa_supplicant_6/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/wpa_supplicant_6.git/packed-refs’: No such file or directory tar: aosp/source/external/wpa_supplicant/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/wpa_supplicant.git/shallow’: No such file or directory tar: aosp/source/external/webrtc/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/webrtc.git/shallow’: No such file or directory tar: aosp/source/external/webrtc/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/webrtc.git/packed-refs’: No such file or directory tar: aosp/source/external/webp/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/webp.git/shallow’: No such file or directory tar: aosp/source/external/webp/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/webp.git/packed-refs’: No such file or directory tar: aosp/source/external/webkit/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/webkit.git/shallow’: No such file or directory tar: aosp/source/external/webkit/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/webkit.git/packed-refs’: No such file or directory tar: aosp/source/external/valgrind/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/valgrind.git/shallow’: No such file or directory tar: aosp/source/external/valgrind/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/valgrind.git/packed-refs’: No such file or directory tar: aosp/source/external/v8/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/v8.git/shallow’: No such file or directory tar: aosp/source/external/v8/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/v8.git/packed-refs’: No such file or directory tar: aosp/source/external/tremolo/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/tremolo.git/shallow’: No such file or directory tar: aosp/source/external/tinyxml/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/tinyxml.git/shallow’: No such file or directory tar: aosp/source/external/tinyalsa/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/tinyalsa.git/shallow’: No such file or directory tar: aosp/source/external/tcpdump/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/tcpdump.git/shallow’: No such file or directory tar: aosp/source/external/tcpdump/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/tcpdump.git/packed-refs’: No such file or directory tar: aosp/source/external/tagsoup/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/tagsoup.git/shallow’: No such file or directory tar: aosp/source/external/svox/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/svox.git/shallow’: No such file or directory tar: aosp/source/external/svox/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/svox.git/packed-refs’: No such file or directory tar: aosp/source/external/strace/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/strace.git/shallow’: No such file or directory tar: aosp/source/external/strace/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/strace.git/packed-refs’: No such file or directory tar: aosp/source/external/stlport/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/stlport.git/shallow’: No such file or directory tar: aosp/source/external/stlport/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/stlport.git/packed-refs’: No such file or directory tar: aosp/source/external/srtp/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/srtp.git/shallow’: No such file or directory tar: aosp/source/external/srec/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/srec.git/shallow’: No such file or directory tar: aosp/source/external/srec/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/srec.git/packed-refs’: No such file or directory tar: aosp/source/external/sqlite/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/sqlite.git/shallow’: No such file or directory tar: aosp/source/external/sqlite/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/sqlite.git/packed-refs’: No such file or directory tar: aosp/source/external/speex/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/speex.git/shallow’: No such file or directory tar: aosp/source/external/sonivox/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/sonivox.git/shallow’: No such file or directory tar: aosp/source/external/sonivox/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/sonivox.git/packed-refs’: No such file or directory tar: aosp/source/external/skia/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/skia.git/shallow’: No such file or directory tar: aosp/source/external/skia/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/skia.git/packed-refs’: No such file or directory tar: aosp/source/external/safe-iop/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/safe-iop.git/shallow’: No such file or directory tar: aosp/source/external/quake/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/quake.git/shallow’: No such file or directory tar: aosp/source/external/quake/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/quake.git/packed-refs’: No such file or directory tar: aosp/source/external/qemu-pc-bios/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/qemu-pc-bios.git/shallow’: No such file or directory tar: aosp/source/external/qemu-pc-bios/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/qemu-pc-bios.git/packed-refs’: No such file or directory tar: aosp/source/external/qemu/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/qemu.git/shallow’: No such file or directory tar: aosp/source/external/qemu/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/qemu.git/packed-refs’: No such file or directory tar: aosp/source/external/protobuf/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/protobuf.git/shallow’: No such file or directory tar: aosp/source/external/protobuf/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/protobuf.git/packed-refs’: No such file or directory tar: aosp/source/external/proguard/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/proguard.git/shallow’: No such file or directory tar: aosp/source/external/proguard/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/proguard.git/packed-refs’: No such file or directory tar: aosp/source/external/ppp/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/ppp.git/shallow’: No such file or directory tar: aosp/source/external/ppp/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/ppp.git/packed-refs’: No such file or directory tar: aosp/source/external/ping6/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/ping6.git/shallow’: No such file or directory tar: aosp/source/external/ping/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/ping.git/shallow’: No such file or directory tar: aosp/source/external/pcre/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/pcre.git/shallow’: No such file or directory tar: aosp/source/external/pcre/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/pcre.git/packed-refs’: No such file or directory tar: aosp/source/external/oprofile/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/oprofile.git/shallow’: No such file or directory tar: aosp/source/external/oprofile/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/oprofile.git/packed-refs’: No such file or directory tar: aosp/source/external/openssl/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/openssl.git/shallow’: No such file or directory tar: aosp/source/external/openssl/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/openssl.git/packed-refs’: No such file or directory tar: aosp/source/external/opencv/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/opencv.git/shallow’: No such file or directory tar: aosp/source/external/opencv/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/opencv.git/packed-refs’: No such file or directory tar: aosp/source/external/oauth/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/oauth.git/shallow’: No such file or directory tar: aosp/source/external/nist-sip/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/nist-sip.git/shallow’: No such file or directory tar: aosp/source/external/nist-sip/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/nist-sip.git/packed-refs’: No such file or directory tar: aosp/source/external/neven/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/neven.git/shallow’: No such file or directory tar: aosp/source/external/netperf/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/netperf.git/shallow’: No such file or directory tar: aosp/source/external/netperf/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/netperf.git/packed-refs’: No such file or directory tar: aosp/source/external/netcat/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/netcat.git/shallow’: No such file or directory tar: aosp/source/external/mtpd/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/mtpd.git/shallow’: No such file or directory tar: aosp/source/external/mockwebserver/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/mockwebserver.git/shallow’: No such file or directory tar: aosp/source/external/mksh/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/mksh.git/shallow’: No such file or directory tar: aosp/source/external/mksh/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/mksh.git/packed-refs’: No such file or directory tar: aosp/source/external/mesa3d/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/mesa3d.git/shallow’: No such file or directory tar: aosp/source/external/mesa3d/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/mesa3d.git/packed-refs’: No such file or directory tar: aosp/source/external/markdown/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/markdown.git/shallow’: No such file or directory tar: aosp/source/external/lohit-fonts/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/lohit-fonts.git/shallow’: No such file or directory tar: aosp/source/external/llvm/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/llvm.git/shallow’: No such file or directory tar: aosp/source/external/llvm/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/llvm.git/packed-refs’: No such file or directory tar: aosp/source/external/libxslt/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/libxslt.git/shallow’: No such file or directory tar: aosp/source/external/libxslt/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/libxslt.git/packed-refs’: No such file or directory tar: aosp/source/external/libxml2/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/libxml2.git/shallow’: No such file or directory tar: aosp/source/external/libxml2/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/libxml2.git/packed-refs’: No such file or directory tar: aosp/source/external/libvpx/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/libvpx.git/shallow’: No such file or directory tar: aosp/source/external/libvpx/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/libvpx.git/packed-refs’: No such file or directory tar: aosp/source/external/libpng/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/libpng.git/shallow’: No such file or directory tar: aosp/source/external/libpng/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/libpng.git/packed-refs’: No such file or directory tar: aosp/source/external/libphonenumber/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/libphonenumber.git/shallow’: No such file or directory tar: aosp/source/external/libphonenumber/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/libphonenumber.git/packed-refs’: No such file or directory tar: aosp/source/external/libpcap/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/libpcap.git/shallow’: No such file or directory tar: aosp/source/external/libpcap/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/libpcap.git/packed-refs’: No such file or directory tar: aosp/source/external/libnl-headers/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/libnl-headers.git/shallow’: No such file or directory tar: aosp/source/external/libnl-headers/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/libnl-headers.git/packed-refs’: No such file or directory tar: aosp/source/external/libnfc-nxp/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/libnfc-nxp.git/shallow’: No such file or directory tar: aosp/source/external/libnfc-nxp/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/libnfc-nxp.git/packed-refs’: No such file or directory tar: aosp/source/external/liblzf/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/liblzf.git/shallow’: No such file or directory tar: aosp/source/external/libgsm/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/libgsm.git/shallow’: No such file or directory tar: aosp/source/external/libffi/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/libffi.git/shallow’: No such file or directory tar: aosp/source/external/libffi/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/libffi.git/packed-refs’: No such file or directory tar: aosp/source/external/kernel-headers/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/kernel-headers.git/shallow’: No such file or directory tar: aosp/source/external/kernel-headers/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/kernel-headers.git/packed-refs’: No such file or directory tar: aosp/source/external/junit/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/junit.git/shallow’: No such file or directory tar: aosp/source/external/jsr305/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/jsr305.git/shallow’: No such file or directory tar: aosp/source/external/jsilver/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/jsilver.git/shallow’: No such file or directory tar: aosp/source/external/jpeg/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/jpeg.git/shallow’: No such file or directory tar: aosp/source/external/jpeg/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/jpeg.git/packed-refs’: No such file or directory tar: aosp/source/external/jhead/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/jhead.git/shallow’: No such file or directory tar: aosp/source/external/jhead/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/jhead.git/packed-refs’: No such file or directory tar: aosp/source/external/jdiff/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/jdiff.git/shallow’: No such file or directory tar: aosp/source/external/jdiff/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/jdiff.git/packed-refs’: No such file or directory tar: aosp/source/external/javassist/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/javassist.git/shallow’: No such file or directory tar: aosp/source/external/javasqlite/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/javasqlite.git/shallow’: No such file or directory tar: aosp/source/external/javasqlite/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/javasqlite.git/packed-refs’: No such file or directory tar: aosp/source/external/iptables/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/iptables.git/shallow’: No such file or directory tar: aosp/source/external/iptables/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/iptables.git/packed-refs’: No such file or directory tar: aosp/source/external/ipsec-tools/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/ipsec-tools.git/shallow’: No such file or directory tar: aosp/source/external/ipsec-tools/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/ipsec-tools.git/packed-refs’: No such file or directory tar: aosp/source/external/iproute2/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/iproute2.git/shallow’: No such file or directory tar: aosp/source/external/iproute2/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/iproute2.git/packed-refs’: No such file or directory tar: aosp/source/external/icu4c/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/icu4c.git/shallow’: No such file or directory tar: aosp/source/external/icu4c/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/icu4c.git/packed-refs’: No such file or directory tar: aosp/source/external/hyphenation/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/hyphenation.git/shallow’: No such file or directory tar: aosp/source/external/hyphenation/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/hyphenation.git/packed-refs’: No such file or directory tar: aosp/source/external/harfbuzz/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/harfbuzz.git/shallow’: No such file or directory tar: aosp/source/external/harfbuzz/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/harfbuzz.git/packed-refs’: No such file or directory tar: aosp/source/external/guava/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/guava.git/shallow’: No such file or directory tar: aosp/source/external/guava/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/guava.git/packed-refs’: No such file or directory tar: aosp/source/external/gtest/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/gtest.git/shallow’: No such file or directory tar: aosp/source/external/gtest/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/gtest.git/packed-refs’: No such file or directory tar: aosp/source/external/grub/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/grub.git/shallow’: No such file or directory tar: aosp/source/external/grub/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/grub.git/packed-refs’: No such file or directory tar: aosp/source/external/google-diff-match-patch/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/google-diff-match-patch.git/shallow’: No such file or directory tar: aosp/source/external/google-diff-match-patch/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/google-diff-match-patch.git/packed-refs’: No such file or directory tar: aosp/source/external/giflib/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/giflib.git/shallow’: No such file or directory tar: aosp/source/external/genext2fs/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/genext2fs.git/shallow’: No such file or directory tar: aosp/source/external/fsck_msdos/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/fsck_msdos.git/shallow’: No such file or directory tar: aosp/source/external/freetype/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/freetype.git/shallow’: No such file or directory tar: aosp/source/external/freetype/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/freetype.git/packed-refs’: No such file or directory tar: aosp/source/external/flac/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/flac.git/shallow’: No such file or directory tar: aosp/source/external/flac/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/flac.git/packed-refs’: No such file or directory tar: aosp/source/external/fdlibm/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/fdlibm.git/shallow’: No such file or directory tar: aosp/source/external/eyes-free/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/eyes-free.git/shallow’: No such file or directory tar: aosp/source/external/expat/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/expat.git/shallow’: No such file or directory tar: aosp/source/external/expat/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/expat.git/packed-refs’: No such file or directory tar: aosp/source/external/esd/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/esd.git/shallow’: No such file or directory tar: aosp/source/external/emma/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/emma.git/shallow’: No such file or directory tar: aosp/source/external/embunit/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/embunit.git/shallow’: No such file or directory tar: aosp/source/external/elfutils/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/elfutils.git/shallow’: No such file or directory tar: aosp/source/external/elfutils/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/elfutils.git/packed-refs’: No such file or directory tar: aosp/source/external/easymock/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/easymock.git/shallow’: No such file or directory tar: aosp/source/external/e2fsprogs/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/e2fsprogs.git/shallow’: No such file or directory tar: aosp/source/external/e2fsprogs/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/e2fsprogs.git/packed-refs’: No such file or directory tar: aosp/source/external/dropbear/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/dropbear.git/shallow’: No such file or directory tar: aosp/source/external/dropbear/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/dropbear.git/packed-refs’: No such file or directory tar: aosp/source/external/doclava/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/doclava.git/shallow’: No such file or directory tar: aosp/source/external/doclava/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/doclava.git/packed-refs’: No such file or directory tar: aosp/source/external/dnsmasq/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/dnsmasq.git/shallow’: No such file or directory tar: aosp/source/external/dhcpcd/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/dhcpcd.git/shallow’: No such file or directory tar: aosp/source/external/dbus/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/dbus.git/shallow’: No such file or directory tar: aosp/source/external/dbus/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/dbus.git/packed-refs’: No such file or directory tar: aosp/source/external/collada/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/collada.git/shallow’: No such file or directory tar: aosp/source/external/clang/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/clang.git/shallow’: No such file or directory tar: aosp/source/external/clang/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/clang.git/packed-refs’: No such file or directory tar: aosp/source/external/chromium/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/chromium.git/shallow’: No such file or directory tar: aosp/source/external/chromium/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/chromium.git/packed-refs’: No such file or directory tar: aosp/source/external/bzip2/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/bzip2.git/shallow’: No such file or directory tar: aosp/source/external/bzip2/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/bzip2.git/packed-refs’: No such file or directory tar: aosp/source/external/bsdiff/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/bsdiff.git/shallow’: No such file or directory tar: aosp/source/external/bouncycastle/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/bouncycastle.git/shallow’: No such file or directory tar: aosp/source/external/bouncycastle/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/bouncycastle.git/packed-refs’: No such file or directory tar: aosp/source/external/bluetooth/hcidump/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/external/bluetooth/hcidump.git/shallow’: No such file or directory tar: aosp/source/external/bluetooth/glib/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/external/bluetooth/glib.git/shallow’: No such file or directory tar: aosp/source/external/bluetooth/glib/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/external/bluetooth/glib.git/packed-refs’: No such file or directory tar: aosp/source/external/bluetooth/bluez/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/external/bluetooth/bluez.git/shallow’: No such file or directory tar: aosp/source/external/bluetooth/bluez/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/external/bluetooth/bluez.git/packed-refs’: No such file or directory tar: aosp/source/external/blktrace/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/blktrace.git/shallow’: No such file or directory tar: aosp/source/external/bison/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/bison.git/shallow’: No such file or directory tar: aosp/source/external/bison/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/bison.git/packed-refs’: No such file or directory tar: aosp/source/external/astl/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/astl.git/shallow’: No such file or directory tar: aosp/source/external/apache-xml/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/apache-xml.git/shallow’: No such file or directory tar: aosp/source/external/apache-xml/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/apache-xml.git/packed-refs’: No such file or directory tar: aosp/source/external/apache-http/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/apache-http.git/shallow’: No such file or directory tar: aosp/source/external/apache-http/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/apache-http.git/packed-refs’: No such file or directory tar: aosp/source/external/apache-harmony/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/apache-harmony.git/shallow’: No such file or directory tar: aosp/source/external/apache-harmony/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/apache-harmony.git/packed-refs’: No such file or directory tar: aosp/source/external/antlr/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/antlr.git/shallow’: No such file or directory tar: aosp/source/external/antlr/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/external/antlr.git/packed-refs’: No such file or directory tar: aosp/source/external/android-mock/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/external/android-mock.git/shallow’: No such file or directory tar: aosp/source/docs/source.android.com/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/docs/source.android.com.git/shallow’: No such file or directory tar: aosp/source/docs/source.android.com/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/docs/source.android.com.git/packed-refs’: No such file or directory tar: aosp/source/device/ti/panda/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/device/ti/panda.git/shallow’: No such file or directory tar: aosp/source/device/ti/panda/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/device/ti/panda.git/packed-refs’: No such file or directory tar: aosp/source/device/samsung/tuna/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/device/samsung/tuna.git/shallow’: No such file or directory tar: aosp/source/device/samsung/tuna/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/device/samsung/tuna.git/packed-refs’: No such file or directory tar: aosp/source/device/samsung/maguro/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/device/samsung/maguro.git/shallow’: No such file or directory tar: aosp/source/device/sample/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/device/sample.git/shallow’: No such file or directory tar: aosp/source/device/sample/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/device/sample.git/packed-refs’: No such file or directory tar: aosp/source/device/google/accessory/demokit/.git/shallow: Cannot create symlink to ‘../../../../../.repo/projects/device/google/accessory/demokit.git/shallow’: No such file or directory tar: aosp/source/device/google/accessory/demokit/.git/packed-refs: Cannot create symlink to ‘../../../../../.repo/projects/device/google/accessory/demokit.git/packed-refs’: No such file or directory tar: aosp/source/device/google/accessory/arduino/.git/shallow: Cannot create symlink to ‘../../../../../.repo/projects/device/google/accessory/arduino.git/shallow’: No such file or directory tar: aosp/source/device/generic/goldfish/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/device/generic/goldfish.git/shallow’: No such file or directory tar: aosp/source/device/generic/goldfish/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/device/generic/goldfish.git/packed-refs’: No such file or directory tar: aosp/source/device/common/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/device/common.git/shallow’: No such file or directory tar: aosp/source/development/.git/shallow: Cannot create symlink to ‘../../.repo/projects/development.git/shallow’: No such file or directory tar: aosp/source/development/.git/packed-refs: Cannot create symlink to ‘../../.repo/projects/development.git/packed-refs’: No such file or directory tar: aosp/source/dalvik/.git/shallow: Cannot create symlink to ‘../../.repo/projects/dalvik.git/shallow’: No such file or directory tar: aosp/source/dalvik/.git/packed-refs: Cannot create symlink to ‘../../.repo/projects/dalvik.git/packed-refs’: No such file or directory tar: aosp/source/cts/.git/shallow: Cannot create symlink to ‘../../.repo/projects/cts.git/shallow’: No such file or directory tar: aosp/source/cts/.git/packed-refs: Cannot create symlink to ‘../../.repo/projects/cts.git/packed-refs’: No such file or directory tar: aosp/source/build/.git/shallow: Cannot create symlink to ‘../../.repo/projects/build.git/shallow’: No such file or directory tar: aosp/source/build/.git/packed-refs: Cannot create symlink to ‘../../.repo/projects/build.git/packed-refs’: No such file or directory tar: aosp/source/bootable/recovery/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/bootable/recovery.git/shallow’: No such file or directory tar: aosp/source/bootable/recovery/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/bootable/recovery.git/packed-refs’: No such file or directory tar: aosp/source/bootable/diskinstaller/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/bootable/diskinstaller.git/shallow’: No such file or directory tar: aosp/source/bootable/diskinstaller/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/bootable/diskinstaller.git/packed-refs’: No such file or directory tar: aosp/source/bootable/bootloader/legacy/.git/shallow: Cannot create symlink to ‘../../../../.repo/projects/bootable/bootloader/legacy.git/shallow’: No such file or directory tar: aosp/source/bootable/bootloader/legacy/.git/packed-refs: Cannot create symlink to ‘../../../../.repo/projects/bootable/bootloader/legacy.git/packed-refs’: No such file or directory tar: aosp/source/bionic/.git/shallow: Cannot create symlink to ‘../../.repo/projects/bionic.git/shallow’: No such file or directory tar: aosp/source/bionic/.git/packed-refs: Cannot create symlink to ‘../../.repo/projects/bionic.git/packed-refs’: No such file or directory tar: aosp/source/abi/cpp/.git/shallow: Cannot create symlink to ‘../../../.repo/projects/abi/cpp.git/shallow’: No such file or directory tar: aosp/source/abi/cpp/.git/packed-refs: Cannot create symlink to ‘../../../.repo/projects/abi/cpp.git/packed-refs’: No such file or directory tar: aosp/source/.repo/manifests/.git/shallow: Cannot create symlink to ‘../../manifests.git/shallow’: No such file or directory
tar: Exiting with failure status due to previous errors

How do I copy directories with symlinks like this?


On 4/21/2019 6:07 AM, Matt D. wrote:
I'm experiencing a discrepancy between Linux cp and Cygwin cp when copying native symbolic links:

Test/
    FolderA/
       123/
       456/ -> 123/

On Linux I can:

 > cp -r FolderA/ FolderB/

 > ls -l FolderB/
total 0
drwxrwxr-x. 2 account group 45 Apr 21 05:47 123
lrwxrwxrwx. 1 account group  4 Apr 21 05:47 456 -> 123/

Entire folder copied with relative symblic link paths preserved.

*** (starting from the original state -- rm -rf FolderB/) ***

 > mkdir FolderB/
 > cp -r FolderA/456 FolderB/

 > ls -l FolderB/
total 0
lrwxrwxrwx. 1 account group  4 Apr 21 05:47 456 -> 123/

Note that "456 -> 123/" in "FolderB/" is a BROKEN link. This is DESIRABLE as it preserves my curated symbolic links with their relative paths.

On Cygwin:

 > cp -r FolderA/ FolderB/

... Works as expected

But:

 > cp -r FolderA/456 FolderB/

ERRORS:

cp: cannot create symbolic link 'FolderB/456': No such file or directory

I know that there is no file or directory there. I'm trying to copy one to this location.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple