Added projects. Part 7

This commit is contained in:
alexey
2025-03-01 23:38:05 +03:00
parent c61763ba56
commit ffe340bcae
5 changed files with 137 additions and 8 deletions

View File

@@ -188,9 +188,7 @@ class GitRepo
f.flock(File::LOCK_SH)
git_path = File.join(@path, repo_name + ".git")
bare_repo = Rugged::Repository.new(git_path)
pp bare_repo.head
pp repo.head
res = (bare_repo.head.oid == repo.head.oid)
res = (bare_repo.head.target.tree.oid == repo.head.target.tree.oid)
end
res
end