[Nexus 5 Q&A, Help & Troubleshooting] danarama:
That is not what Your_Working_directory/.repo/manifests/default.xml. should look like.

It should look something like this

<?xml version="1.0" encoding="UTF-8"?>
<manifest>

<remote name="aosp"
fetch=".." />
<default revision="refs/tags/android-5.0.0_r2"
remote="aosp"
sync-j="4" />

<project path="build" name="platform/build" groups="pdk,tradefed" >
<copyfile src="core/root.mk" dest="Makefile" />
</project>
<project path="abi/cpp" name="platform/abi/cpp" groups="pdk" />
<project path="art" name="platform/art" groups="pdk" />
<project path="bionic" name="platform/bionic" groups="pdk" />
<project path="bootable/bootloader/legacy" name="platform/bootable/bootloader/legacy" groups="pdk-cw-fs" />
<project path="bootable/recovery" name="platform/bootable/recovery" groups="pdk" />
<project path="cts" name="platform/cts" groups="cts,pdk-cw-fs" />
<project path="dalvik" name="platform/dalvik" groups="pdk-cw-fs" />
<project path="developers/build" name="platform/developers/build" />
<project path="developers/demos" name="platform/developers/demos" />
<project path="developers/docs" name="platform/developers/docs" />
<project path="developers/samples/android" name="platform/developers/samples/android" />
<project path="development" name="platform/development" groups="pdk-cw-fs" />
<project path="device/asus/deb" name="device/asus/deb" groups="device,flo" />
<project path="device/asus/flo" name="device/asus/flo" groups="device,flo" />
<project path="device/asus/flo-kernel" name="device/asus/flo-kernel" groups="device,flo" clone-depth="1" />
<project path="device/asus/fugu" name="device/asus/fugu" groups="device,fugu" />
<project path="device/asus/fugu-kernel" name="device/asus/fugu-kernel" groups="device,fugu" clone-depth="1" />
<project path="device/asus/grouper" name="device/asus/grouper" groups="device,grouper" />
<project path="device/asus/tilapia" name="device/asus/tilapia" groups="device,grouper" />
<project path="device/common" name="device/common" groups="pdk-cw-fs" />
<project path="device/generic/arm64" name="device/generic/arm64" groups="pdk" />
<project path="device/generic/armv7-a-neon" name="device/generic/armv7-a-neon" groups="pdk" />
<project path="device/generic/common" name="device/generic/common" groups="pdk" />
<project path="device/generic/goldfish" name="device/generic/goldfish" groups="pdk" />
<project path="device/generic/mips" name="device/generic/mips" groups="pdk" />
<project path="device/generic/mini-emulator-arm64" name="device/generic/mini-emulator-arm64" groups="pdk" />
<project path="device/generic/mini-emulator-armv7-a-neon" name="device/generic/mini-emulator-armv7-a-neon" groups="pdk" />
<project path="device/generic/mini-emulator-mips" name="device/generic/mini-emulator-mips" groups="pdk" />
<project path="device/generic/mini-emulator-x86" name="device/generic/mini-emulator-x86" groups="pdk" />
<project path="device/generic/mini-emulator-x86_64" name="device/generic/mini-emulator-x86_64" groups="pdk" />
<project path="device/generic/qemu" name="device/generic/qemu" />
<project path="device/generic/x86" name="device/generic/x86" groups="pdk" />
<project path="device/generic/x86_64" name="device/generic/x86_64" groups="pdk" />
<project path="device/google/accessory/arduino" name="device/google/accessory/arduino" groups="device" />
<project path="device/google/accessory/demokit" name="device/google/accessory/demokit" groups="device" />
<project path="device/google/atv" name="device/google/atv" groups="device,fugu" />
<project path="device/htc/flounder" name="device/htc/flounder" groups="device,flounder" />
<project path="device/htc/flounder-kernel" name="device/htc/flounder-kernel" groups="device,flounder" clone-depth="1" />
<project path="device/lge/hammerhead" name="device/lge/hammerhead" groups="device,hammerhead" />
<project path="device/lge/hammerhead-kernel" name="device/lge/hammerhead-kernel" groups="device,hammerhead" clone-depth="1" />
<project path="device/lge/mako" name="device/lge/mako" groups="device,mako" />
<project path="device/lge/mako-kernel" name="device/lge/mako-kernel" groups="device,mako" clone-depth="1" />
<project path="device/moto/shamu" name="device/moto/shamu" groups="device,shamu" />
<project path="device/moto/shamu-kernel" name="device/moto/shamu-kernel" groups="device,shamu" clone-depth="1" />
<project path="device/sample" name="device/sample" groups="pdk" />
<project path="device/samsung/manta" name="device/samsung/manta" groups="device,manta" />
<project path="docs/source.android.com" name="platform/docs/source.android.com" groups="pdk-cw-fs" />
<project path="external/aac" name="platform/external/aac" groups="pdk" />
<project path="external/android-clat" name="platform/external/android-clat" groups="pdk-cw-fs" />
<project path="external/ant-glob" name="platform/external/ant-glob" groups="pdk-cw-fs" />
<project path="external/antlr" name="platform/external/antlr" groups="pdk-cw-fs,tradefed" />
<project path="external/apache-harmony" name="platform/external/apache-harmony" groups="pdk-cw-fs" />
<project path="external/apache-http" name="platform/external/apache-http" groups="pdk-cw-fs" />
<project path="external/apache-qp" name="platform/external/apache-qp" groups="pdk-cw-fs" />
<project path="external/apache-xml" name="platform/external/apache-xml" groups="pdk-cw-fs" />
<project path="external/arduino" name="platform/external/arduino" groups="pdk-cw-fs" />
<project path="external/bison" name="platform/external/bison" groups="pdk" />
<project path="external/blktrace" name="platform/external/blktrace" groups="pdk-cw-fs" />
<project path="external/bluetooth/bluedroid" name="platform/external/bluetooth/bluedroid" groups="pdk" />
<project path="external/bouncycastle" name="platform/external/bouncycastle" groups="pdk" />
<project path="external/bsdiff" name="platform/external/bsdiff" groups="pdk" />
<project path="external/bzip2" name="platform/external/bzip2" groups="pdk" />
<project path="external/ceres-solver" name="platform/external/ceres-solver" groups="pdk-cw-fs" />
<project path="external/checkpolicy" name="platform/external/checkpolicy" groups="pdk" />
<project path="external/chromium-libpac" name="platform/external/chromium-libpac" />
<project path="external/chromium-trace" name="platform/external/chromium-trace" groups="pdk" />
<project path="external/chromium_org" name="platform/external/chromium_org" />
<project path="external/chromium_org/sdch/open-vcdiff" name="platform/external/chromium_org/sdch/open-vcdiff" />
<project path="external/chromium_org/testing/gtest" name="platform/external/chromium_org/testing/gtest" />
<project path="external/chromium_org/third_party/WebKit" name="platform/external/chromium_org/third_party/WebKit" />
<project path="external/chromium_org/third_party/angle" name="platform/external/chromium_org/third_party/angle" />
<project path="external/chromium_org/third_party/brotli/src" name="platform/external/chromium_org/third_party/brotli/src" />
<project path="external/chromium_org/third_party/eyesfree/src/android/java/src/com/googlecode/eyesfree/braille" name="platform/external/chromium_org/third_party/eyesfree/src/android/java/src/com/googlecode/eyesfree/braille" />
<project path="external/chromium_org/third_party/freetype" name="platform/external/chromium_org/third_party/freetype" />
<project path="external/chromium_org/third_party/icu" name="platform/external/chromium_org/third_party/icu" />
<project path="external/chromium_org/third_party/leveldatabase/src" name="platform/external/chromium_org/third_party/leveldatabase/src" />
<project path="external/chromium_org/third_party/libaddressinput/src" name="platform/external/chromium_org/third_party/libaddressinput/src" />
<project path="external/chromium_org/third_party/libjingle/source/talk" name="platform/external/chromium_org/third_party/libjingle/source/talk" />
<project path="external/chromium_org/third_party/libjpeg_turbo" name="platform/external/chromium_org/third_party/libjpeg_turbo" />
<project path="external/chromium_org/third_party/libphonenumber/src/phonenumbers" name="platform/external/chromium_org/third_party/libphonenumber/src/phonenumbers" />
<project path="external/chromium_org/third_party/libphonenumber/src/resources" name="platform/external/chromium_org/third_party/libphonenumber/src/resources" />
<project path="external/chromium_org/third_party/libsrtp" name="platform/external/chromium_org/third_party/libsrtp" />
<project path="external/chromium_org/third_party/libvpx" name="platform/external/chromium_org/third_party/libvpx" />
<project path="external/chromium_org/third_party/libyuv" name="platform/external/chromium_org/third_party/libyuv" />
<project path="external/chromium_org/third_party/mesa/src" name="platform/external/chromium_org/third_party/mesa/src" />
<project path="external/chromium_org/third_party/openmax_dl" name="platform/external/chromium_org/third_party/openmax_dl" />
<project path="external/chromium_org/third_party/openssl" name="platform/external/chromium_org/third_party/openssl" />
<project path="external/chromium_org/third_party/opus/src" name="platform/external/chromium_org/third_party/opus/src" />
<project path="external/chromium_org/third_party/ots" name="platform/external/chromium_org/third_party/ots" />
<project path="external/chromium_org/third_party/sfntly/cpp/src" name="platform/external/chromium_org/third_party/sfntly/cpp/src" />
<project path="external/chromium_org/third_party/skia" name="platform/external/chromium_org/third_party/skia" />
<project path="external/chromium_org/third_party/smhasher/src" name="platform/external/chromium_org/third_party/smhasher/src" />
<project path="external/chromium_org/third_party/usrsctp/usrsctplib" name="platform/external/chromium_org/third_party/usrsctp/usrsctplib" />
<project path="external/chromium_org/third_party/webrtc" name="platform/external/chromium_org/third_party/webrtc" />
<project path="external/chromium_org/third_party/yasm/source/patched-yasm" name="platform/external/chromium_org/third_party/yasm/source/patched-yasm" />
<project path="external/chromium_org/tools/grit" name="platform/external/chromium_org/tools/grit" />
<project path="external/chromium_org/tools/gyp" name="platform/external/chromium_org/tools/gyp" />
<project path="external/chromium_org/v8" name="platform/external/chromium_org/v8" />
<project path="external/clang" name="platform/external/clang" groups="pdk" />
<project path="external/cmockery" name="platform/external/cmockery" />
<project path="external/compiler-rt" name="platform/external/compiler-rt" groups="pdk" />
<project path="external/conscrypt" name="platform/external/conscrypt" groups="pdk-cw-fs" />
<project path="external/deqp" name="platform/external/deqp" />
<project path="external/dexmaker" name="platform/external/dexmaker" groups="pdk-cw-fs" />
<project path="external/dhcpcd" name="platform/external/dhcpcd" groups="pdk-cw-fs" />
<project path="external/dnsmasq" name="platform/external/dnsmasq" groups="pdk" />
<project path="external/doclava" name="platform/external/doclava" groups="pdk-cw-fs,tradefed" />
<project path="external/droiddriver" name="platform/external/droiddriver" groups="pdk-cw-fs" />
<project path="external/e2fsprogs" name="platform/external/e2fsprogs" groups="pdk" />
<project path="external/easymock" name="platform/external/easymock" groups="pdk-cw-fs,tradefed" />
<project path="external/eclipse-basebuilder" name="platform/external/eclipse-basebuilder" groups="pdk-cw-fs" />
<project path="external/eclipse-windowbuilder" name="platform/external/eclipse-windowbuilder" groups="pdk-cw-fs" />
<project path="external/eigen" name="platform/external/eigen" groups="pdk-cw-fs" />
<project path="external/elfutils" name="platform/external/elfutils" groups="pdk" />
<project path="external/emma" name="platform/external/emma" groups="pdk-cw-fs,tradefed" />
<project path="external/esd" name="platform/external/esd" groups="pdk-cw-fs" />
<project path="external/expat" name="platform/external/expat" groups="pdk" />
<project path="external/eyes-free" name="platform/external/eyes-free" groups="pdk-cw-fs" />
<project path="external/f2fs-tools" name="platform/external/f2fs-tools" groups="pdk" />
<project path="external/fdlibm" name="platform/external/fdlibm" groups="pdk" />
<project path="external/fio" name="platform/external/fio" />
<project path="external/flac" name="platform/external/flac" groups="pdk" />
<project path="external/fonttools" name="platform/external/fonttools" />
<project path="external/freetype" name="platform/external/freetype" groups="pdk" />
<project path="external/fsck_msdos" name="platform/external/fsck_msdos" groups="pdk-cw-fs" />
<project path="external/gcc-demangle" name="platform/external/gcc-demangle" groups="pdk" />
<project path="external/genext2fs" name="platform/external/genext2fs" groups="pdk-cw-fs" />
<project path="external/giflib" name="platform/external/giflib" groups="pdk-cw-fs,qcom_msm8x26" />
<project path="external/glide" name="platform/external/glide" />
<project path="external/google-diff-match-patch" name="platform/external/google-diff-match-patch" groups="pdk-cw-fs" />
<project path="external/google-fonts/coming-soon" name="platform/external/google-fonts/coming-soon" groups="pdk-cw-fs" />
<project path="external/google-fonts/dancing-script" name="platform/external/google-fonts/dancing-script" groups="pdk-cw-fs" />
<project path="external/google-fonts/carrois-gothic-sc" name="platform/external/google-fonts/carrois-gothic-sc" groups="pdk-cw-fs" />
<project path="external/google-fonts/cutive-mono" name="platform/external/google-fonts/cutive-mono" groups="pdk-cw-fs" />
<project path="external/google-tv-pairing-protocol" name="platform/external/google-tv-pairing-protocol" />
<project path="external/gtest" name="platform/external/gtest" groups="pdk" />
<project path="external/guava" name="platform/external/guava" groups="pdk-cw-fs,tradefed" />
<project path="external/hamcrest" name="platform/external/hamcrest" groups="pdk-cw-fs,tradefed" />
<project path="external/harfbuzz_ng" name="platform/external/harfbuzz_ng" groups="pdk-cw-fs,qcom_msm8x26" />
<project path="external/icu" name="platform/external/icu" groups="pdk" />
<project path="external/iproute2" name="platform/external/iproute2" groups="pdk" />
<project path="external/ipsec-tools" name="platform/external/ipsec-tools" groups="pdk-cw-fs" />
<project path="external/iptables" name="platform/external/iptables" groups="pdk-cw-fs" />
<project path="external/iputils" name="platform/external/iputils" groups="pdk-cw-fs" />
<project path="external/jack" name="platform/external/jack" groups="pdk-cw-fs" />
<project path="external/jarjar" name="platform/external/jarjar" groups="pdk" />
<project path="external/javasqlite" name="platform/external/javasqlite" groups="pdk-cw-fs" />
<project path="external/javassist" name="platform/external/javassist" groups="pdk-cw-fs" />
<project path="external/jdiff" name="platform/external/jdiff" groups="pdk-cw-fs" />
<project path="external/jemalloc" name="platform/external/jemalloc" groups="pdk" />
<project path="external/jhead" name="platform/external/jhead" groups="pdk" />
<project path="external/jline" name="platform/external/jline" groups="notdefault,tradefed" />
<project path="external/jmdns" name="platform/external/jmdns" groups="pdk-cw-fs" />
<project path="external/jpeg" name="platform/external/jpeg" groups="pdk" />
<project path="external/jsilver" name="platform/external/jsilver" groups="pdk-cw-fs,tradefed" />
<project path="external/jsmn" name="platform/external/jsmn" groups="pdk" />
<project path="external/jsoncpp" name="platform/external/jsoncpp" groups="pdk-cw-fs" />
<project path="external/jsr305" name="platform/external/jsr305" groups="pdk-cw-fs,tradefed" />
<project path="external/junit" name="platform/external/junit" groups="pdk-cw-fs,tradefed" />
<project path="external/ksoap2" name="platform/external/ksoap2" groups="pdk-cw-fs" />
<project path="external/kernel-headers" name="platform/external/kernel-headers" groups="pdk-cw-fs" />
<project path="external/libcap-ng" name="platform/external/libcap-ng" groups="pdk-cw-fs" />
<project path="external/libcxx" name="platform/external/libcxx" groups="pdk" />
<project path="external/libcxxabi" name="platform/external/libcxxabi" groups="pdk" />
<project path="external/libedit" name="platform/external/libedit" />
<project path="external/libexif" name="platform/external/libexif" groups="pdk-cw-fs" />
<project path="external/libhevc" name="platform/external/libhevc" />
<project path="external/libgsm" name="platform/external/libgsm" groups="pdk" />
<project path="external/liblzf" name="platform/external/liblzf" groups="pdk" />
<project path="external/libmtp" name="platform/external/libmtp" groups="pdk-cw-fs" />
<project path="external/libnfc-nci" name="platform/external/libnfc-nci" groups="pdk" />
<project path="external/libnfc-nxp" name="platform/external/libnfc-nxp" groups="pdk" />
<project path="external/libnl" name="platform/external/libnl" groups="pdk" />
<project path="external/libogg" name="platform/external/libogg" groups="pdk" />
<project path="external/libopus" name="platform/external/libopus" groups="pdk" />
<project path="external/libpcap" name="platform/external/libpcap" groups="pdk,pdk-cw-fs" />
<project path="external/libphonenumber" name="platform/external/libphonenumber" groups="pdk-cw-fs" />
<project path="external/libpng" name="platform/external/libpng" groups="pdk" />
<project path="external/libseccomp-helper" name="platform/external/libseccomp-helper" groups="pdk-cw-fs" />
<project path="external/libselinux" name="platform/external/libselinux" groups="pdk" />
<project path="external/libsepol" name="platform/external/libsepol" groups="pdk" />
<project path="external/libssh2" name="platform/external/libssh2" groups="pdk-cw-fs" />
<project path="external/libunwind" name="platform/external/libunwind" groups="pdk" />
<project path="external/libusb" name="platform/external/libusb" groups="pdk-cw-fs" />
<project path="external/libusb-compat" name="platform/external/libusb-compat" groups="pdk-cw-fs" />
<project path="external/libutf" name="platform/external/libutf" groups="pdk-cw-fs" />
<project path="external/libvorbis" name="platform/external/libvorbis" groups="pdk-cw-fs" />
<project path="external/libvpx" name="platform/external/libvpx" groups="pdk" />
<project path="external/libxml2" name="platform/external/libxml2" groups="pdk-cw-fs" />
<project path="external/libyuv" name="platform/external/libyuv" groups="libyuv,pdk-cw-fs" />
<project path="external/linux-tools-perf" name="platform/external/linux-tools-perf" groups="pdk-cw-fs" />
<project path="external/littlemock" name="platform/external/littlemock" groups="pdk-cw-fs" />
<project path="external/lldb" name="platform/external/lldb" groups="pdk-cw-fs" />
<project path="external/llvm" name="platform/external/llvm" groups="pdk" />
<project path="external/ltrace" name="platform/external/ltrace" groups="pdk-cw-fs" />
<project path="external/lzma" name="platform/external/lzma" groups="pdk" />
<project path="external/markdown" name="platform/external/markdown" groups="pdk-cw-fs" />
<project path="external/mdnsresponder" name="platform/external/mdnsresponder" groups="pdk" />
<project path="external/mesa3d" name="platform/external/mesa3d" groups="pdk-cw-fs" />
<project path="external/messageformat" name="platform/external/messageformat" groups="pdk-cw-fs" />
<project path="external/mksh" name="platform/external/mksh" groups="pdk" />
<project path="external/mockito" name="platform/external/mockito" groups="pdk-cw-fs" />
<project path="external/mockwebserver" name="platform/external/mockwebserver" groups="pdk-cw-fs" />
<project path="external/mp4parser" name="platform/external/mp4parser" groups="pdk-cw-fs" />

<snip>

</manifest>