[gnome-builder] git: watch .git/HEAD for changes
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] git: watch .git/HEAD for changes
- Date: Wed, 22 Jun 2016 03:29:44 +0000 (UTC)
commit 75fedd18ff36492ec7826d80b1ee359e1e54d659
Author: Christian Hergert <chergert redhat com>
Date: Tue Jun 21 20:28:54 2016 -0700
git: watch .git/HEAD for changes
plugins/git/ide-git-vcs.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/plugins/git/ide-git-vcs.c b/plugins/git/ide-git-vcs.c
index cd7a9a2..0b2d4bb 100644
--- a/plugins/git/ide-git-vcs.c
+++ b/plugins/git/ide-git-vcs.c
@@ -217,15 +217,14 @@ ide_git_vcs_load_monitor (IdeGitVcs *self,
if (self->monitor == NULL)
{
- const GFileMonitorFlags flags = G_FILE_MONITOR_SEND_MOVED | G_FILE_MONITOR_WATCH_HARD_LINKS;
g_autoptr(GFile) location = NULL;
g_autoptr(GFileMonitor) monitor = NULL;
g_autoptr(GFile) heads_dir = NULL;
GError *local_error = NULL;
location = ggit_repository_get_location (self->repository);
- heads_dir = g_file_get_child (location, "refs/heads");
- monitor = g_file_monitor (heads_dir, flags, NULL, &local_error);
+ heads_dir = g_file_get_child (location, "HEAD");
+ monitor = g_file_monitor (heads_dir, 0, NULL, &local_error);
if (monitor == NULL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]