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);