[gnome-builder/wip/gtk4-port: 1401/1774] plugins/git: default to "main" for branch
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 1401/1774] plugins/git: default to "main" for branch
- Date: Mon, 11 Jul 2022 22:31:44 +0000 (UTC)
commit 00fdcaeb568be628e7647662a4f7da493babe961
Author: Christian Hergert <chergert redhat com>
Date: Tue Jun 7 16:57:09 2022 -0700
plugins/git: default to "main" for branch
src/plugins/git/daemon/ipc-git-repository-impl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/git/daemon/ipc-git-repository-impl.c
b/src/plugins/git/daemon/ipc-git-repository-impl.c
index 65e30dc93..61df7a4c4 100644
--- a/src/plugins/git/daemon/ipc-git-repository-impl.c
+++ b/src/plugins/git/daemon/ipc-git-repository-impl.c
@@ -226,7 +226,7 @@ ipc_git_repository_impl_handle_switch_branch (IpcGitRepository *repository,
return complete_wrapped_error (invocation, error);
if (!(shortname = ggit_ref_get_shorthand (ref)))
- shortname = "master";
+ shortname = "main";
workdir = ggit_repository_get_workdir (self->repository);
@@ -1175,7 +1175,7 @@ ipc_git_repository_impl_open (GFile *location,
branch = g_strdup (ggit_ref_get_shorthand (ref));
if (branch == NULL)
- branch = g_strdup ("master");
+ branch = g_strdup ("main");
}
workdir = ggit_repository_get_workdir (repository);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]