Skip to content

Commit 8af9db4

Browse files
authored
Git hooks to show no upgrade reminder when running un-attended
- Dont try to trigger reminder messaging when running in unattended mode. - GVFS Hooks already check for un-attended mode. Re-using this to suppress upgrade reminder notification. - Fixes #494
2 parents ad00893 + 13613f3 commit 8af9db4

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

GVFS/GVFS.Hooks/Program.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public static void Main(string[] args)
6969
RunLockRequest(args, unattended, ReleaseGVFSLock);
7070
}
7171

72-
RunPostCommands(args);
72+
RunPostCommands(args, unattended);
7373
break;
7474

7575
default:
@@ -95,9 +95,12 @@ private static void RunPreCommands(string[] args)
9595
}
9696
}
9797

98-
private static void RunPostCommands(string[] args)
98+
private static void RunPostCommands(string[] args, bool unattended)
9999
{
100-
RemindUpgradeAvailable();
100+
if (!unattended)
101+
{
102+
RemindUpgradeAvailable();
103+
}
101104
}
102105

103106
private static void RemindUpgradeAvailable()

0 commit comments

Comments
 (0)