Pārlūkot izejas kodu

Added branches to git overview on system tab

pull/194/head
Johannes pirms 7 gadiem
vecāks
revīzija
37068ca432
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. +4
    -0
      modules/system/endpoints.py

+ 4
- 0
modules/system/endpoints.py Parādīt failu

@@ -61,6 +61,10 @@ class SystemView(FlaskView):
for t in repo.tags:
tags.append({"name": t.name, "commit": str(t.commit), "date": t.commit.committed_date,
"committer": t.commit.committer.name, "message": t.commit.message})
for b in repo.branches:
tags.append({"name": b.name, "commit": str(b.commit), "date": b.commit.committed_date,
"committer": b.commit.committer.name, "message": b.commit.message})
try:
branch_name = repo.active_branch.name
# test1


Notiek ielāde…
Atcelt
Saglabāt