From b4064c3bf9e0f38da69a3168c99983c0db95de13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=ED=8C=90=EB=8F=8C?= Date: Sat, 25 Nov 2023 17:48:39 +0900 Subject: [PATCH] =?UTF-8?q?=EC=97=89=EB=9A=B1=ED=95=9C=EA=B3=B3=EC=97=90?= =?UTF-8?q?=20=EB=B2=84=EC=A0=84=EC=9D=84=20=EC=A0=80=EC=9E=A5=ED=95=98?= =?UTF-8?q?=EB=8A=94=20=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Server/Git/AbstractGit.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Server/Git/AbstractGit.cs b/Server/Git/AbstractGit.cs index c5feb06..92cc796 100644 --- a/Server/Git/AbstractGit.cs +++ b/Server/Git/AbstractGit.cs @@ -99,10 +99,10 @@ namespace Server.Git //초기세팅일 경우 데이터를 받아오고 아닐경우 데이터를저장 if(ProtocolProcessor.version == "") { - string versionFilePath = Path.Combine(repositoryPath, "version"); + string versionFilePath = Path.Combine(repositoryPath, @"/version.txt"); if (File.Exists(versionFilePath)) { - using (StreamReader reader = new StreamReader(repositoryPath + @"version")) + using (StreamReader reader = new StreamReader(repositoryPath + @"/version.txt")) { ProtocolProcessor.version = reader.ReadToEnd(); } @@ -116,13 +116,12 @@ namespace Server.Git } else { - using (StreamWriter writer = new StreamWriter(repositoryPath + @"version")) + using (StreamWriter writer = new StreamWriter(repositoryPath + @"/version.txt")) { writer.Write(ProtocolProcessor.version); + logger.Info("saveVersion"); } - //버전 정보가 있을때만 커밋 - // 스테이징 RepositorySet("add .", repositoryPath);