From 3d5bd90d74eb2bf91bebff63ff1453e2b5fc1f9a Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Mon, 11 Sep 2017 11:34:30 -0400 Subject: [PATCH] Fixes pushing of zero commits --- TGServerService/Repository.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TGServerService/Repository.cs b/TGServerService/Repository.cs index 3f7d730435..ea1766b16a 100644 --- a/TGServerService/Repository.cs +++ b/TGServerService/Repository.cs @@ -788,12 +788,13 @@ namespace TGServerService //public api string Push() { + if (LocalIsRemote()) //nothing to push + return null; lock (RepoLock) { var result = LoadRepo(); if (result != null) return result; - try { if (!SSHAuth())