Use HEAD rather than a specific branch name in a link

This avoids needing to keep track of the name of the default branch.

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie
2022-02-13 21:12:02 +00:00
parent d00020a616
commit 19e47bffa8

View File

@@ -411,7 +411,7 @@ lookup_auth_from_config (const char *oci_registry_uri)
const char *flatpak_global_path = "/etc/flatpak/oci-auth.json";
/* These are what skopeo & co use as per:
https://github.com/containers/image/blob/master/pkg/docker/config/config.go#L34
https://github.com/containers/image/blob/HEAD/pkg/docker/config/config.go#L34
*/
g_autofree char *user_container_path = g_build_filename (g_get_user_runtime_dir (), "containers/auth.json", NULL);
g_autofree char *container_path = g_strdup_printf ("/run/containers/%d/auth.json", getuid ());