Преглед изворни кода

Added branches to git overview on system tab

pull/194/head
Johannes пре 7 година
родитељ
комит
37068ca432
1 измењених фајлова са 4 додато и 0 уклоњено
  1. +4
    -0
      modules/system/endpoints.py

+ 4
- 0
modules/system/endpoints.py Прегледај датотеку

@@ -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


Loading…
Откажи
Сачувај