Build fails as libgdata's master branch was renamed to main branch
When building the photos project locally using the gnome builder app, it ends with this error message
error: pathspec 'master' did not match any file(s) known to git
Here is a complete trace of the build process
flatpak build-init --arch=x86_64 /home/kay404/.var/app/org.gnome.Builder/cache/gnome-builder/projects/gnome-photos/flatpak/staging/x86_64-master org.gnome.Photos org.gnome.Sdk org.gnome.Platform master
flatpak-builder --arch=x86_64 --ccache --force-clean --state-dir /home/kay404/.var/app/org.gnome.Builder/cache/gnome-builder/flatpak-builder --download-only --disable-updates --stop-at=gnome-photos /home/kay404/.var/app/org.gnome.Builder/cache/gnome-builder/projects/gnome-photos/flatpak/staging/x86_64-master /home/kay404/projects/gnome/gnome-photos/flatpak/org.gnome.Photos.json
(flatpak-builder:267): Json-WARNING **: 01:51:47.980: Failed to deserialize "disable-shallow-clone" property of type "gboolean" for an object of type "BuilderSourceGit"
Emptying app dir '/home/kay404/.var/app/org.gnome.Builder/cache/gnome-builder/projects/gnome-photos/flatpak/staging/x86_64-master'
Downloading sources
Fetching full git repo https://gitlab.gnome.org/GNOME/libgdata.git
fatal: ambiguous argument 'master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Failed to download sources: module libgdata: Child process exited with code 128
flatpak-builder --arch=x86_64 --ccache --force-clean --disable-updates --disable-download --state-dir /home/kay404/.var/app/org.gnome.Builder/cache/gnome-builder/flatpak-builder --stop-at=gnome-photos /home/kay404/.var/app/org.gnome.Builder/cache/gnome-builder/projects/gnome-photos/flatpak/staging/x86_64-master /home/kay404/projects/gnome/gnome-photos/flatpak/org.gnome.Photos.json
(flatpak-builder:299): Json-WARNING **: 01:51:51.070: Failed to deserialize "disable-shallow-clone" property of type "gboolean" for an object of type "BuilderSourceGit"
Starting build of org.gnome.Photos
Cache hit for babl, skipping build
Cache hit for geocode-glib, skipping build
Cache hit for libdazzle, skipping build
Cache hit for libhandy, skipping build
Cache hit for librest, skipping build
Cache hit for gnome-online-accounts, skipping build
Cache hit for libgfbgraph, skipping build
fatal: ambiguous argument 'master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
(flatpak-builder:299): flatpak-builder-WARNING **: 01:51:51.301: Failed to get current git checksum: Child process exited with code 128
Cache miss, checking out last cache hit
(flatpak-builder:299): flatpak-builder-WARNING **: 01:51:51.340: rofiles-fuse not available, doing without
Building module libgdata in /home/kay404/.var/app/org.gnome.Builder/cache/gnome-builder/flatpak-builder/build/libgdata-36
error: pathspec 'master' did not match any file(s) known to git
Error: module libgdata: Child process exited with code 1